ramips: enablemodem: move /lib/ramips.sh to start()
[openwrt/staging/blogic.git] / 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