[source] ramips: enablemodem: move /lib/ramips.sh to start()

LEDE Commits lede-commits at lists.infradead.org
Fri Dec 23 22:14:20 PST 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/3a6353d910fc1e9a9fdafbd85c96d96d8d43746a

commit 3a6353d910fc1e9a9fdafbd85c96d96d8d43746a
Author: Henryk Heisig <hyniu at o2.pl>
AuthorDate: Fri Dec 23 15:05:33 2016 +0100

    ramips: enablemodem: move /lib/ramips.sh to start()
    
    Fix build error: /etc/init.d/enablemodem: line 2: /lib/ramips.sh: No such file or directory
    
    Signed-off-by: Henryk Heisig <hyniu at o2.pl>
---
 target/linux/ramips/base-files/etc/init.d/enablemodem | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/linux/ramips/base-files/etc/init.d/enablemodem b/target/linux/ramips/base-files/etc/init.d/enablemodem
index a7e6c2e..ba54cc4 100755
--- a/target/linux/ramips/base-files/etc/init.d/enablemodem
+++ b/target/linux/ramips/base-files/etc/init.d/enablemodem
@@ -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



More information about the lede-commits mailing list