ramips: enablemodem: move /lib/ramips.sh to start()
authorHenryk Heisig <hyniu@o2.pl>
Fri, 23 Dec 2016 14:05:33 +0000 (15:05 +0100)
committerJohn Crispin <john@phrozen.org>
Sat, 24 Dec 2016 05:51:59 +0000 (06:51 +0100)
Fix build error: /etc/init.d/enablemodem: line 2: /lib/ramips.sh: No such file or directory

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
target/linux/ramips/base-files/etc/init.d/enablemodem

index a7e6c2ef23a7cb869342c12c6e3746e02ec2ee03..ba54cc4e6a0ff94633412960bed7f6694caa6ebe 100755 (executable)
@@ -1,9 +1,10 @@
 #!/bin/sh /etc/rc.common
-. /lib/ramips.sh
 
 START=99
 
 start() {
+       . /lib/ramips.sh
+
        local board=$(ramips_board_name)
        if [ $board = "mr200" ]; then
                adb wait-for-device