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