mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
17 lines
333 B
Plaintext
17 lines
333 B
Plaintext
|
#!/bin/sh /etc/rc.common
|
||
|
. /lib/ramips.sh
|
||
|
|
||
|
START=99
|
||
|
|
||
|
start() {
|
||
|
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
|
||
|
}
|