enablemodem 335 B

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