ramips: Add support to TP-Link Archer MR200
[openwrt/staging/blogic.git] / target / linux / ramips / base-files / etc / init.d / enablemodem
1 #!/bin/sh /etc/rc.common
2 . /lib/ramips.sh
3
4 START=99
5
6 start() {
7 local board=$(ramips_board_name)
8 if [ $board = "mr200" ]; then
9 adb wait-for-device
10 adb shell chmod +x /WEBSERVER/www/cgi-bin/*
11 adb shell httpd -h /WEBSERVER/www/ &
12 echo "2357 000d" > /sys/bus/usb-serial/drivers/option1/new_id
13 sleep 2
14 adb kill-server
15 fi
16 }