2016-09-24 19:41:43 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
|
|
|
|
START=99
|
|
|
|
|
|
|
|
start() {
|
2016-12-23 14:05:33 +00:00
|
|
|
. /lib/ramips.sh
|
|
|
|
|
2016-09-24 19:41:43 +00:00
|
|
|
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
|
|
|
|
}
|