openwrt/target/linux/ramips/base-files/etc/init.d/enablemodem
Henryk Heisig 3a6353d910 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@o2.pl>
2016-12-24 06:51:59 +01:00

18 lines
335 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=99
start() {
. /lib/ramips.sh
local board=$(ramips_board_name)
if [ $board = "mr200" ]; then
adb wait-for-device
adb shell chmod +x /WEBSERVER/www/cgi-bin/*
adb shell httpd -h /WEBSERVER/www/ &
echo "2357 000d" > /sys/bus/usb-serial/drivers/option1/new_id
sleep 2
adb kill-server
fi
}