Advertisement
Guest User

Modem preparation script

a guest
Apr 8th, 2013
1,223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Switch modem
  4. echo 'Switching modem'
  5. screen -d -m usb_modeswitch -v 0x12d1 -p 0x1446 -M 55534243123456780000000000000011062000000100000000000000000000 -R
  6. sleep 1
  7. screen -d -m usb_modeswitch -v 0x12d1 -p 0x1446 -M 55534243123456780000000000000011062000000100000000000000000000 -R
  8. sleep 1
  9. screen -d -m usb_modeswitch -v 0x12d1 -p 0x1446 -M 55534243123456780000000000000011062000000100000000000000000000 -R
  10. sleep 5
  11. #Restart modem
  12. echo 'Restarting modem'
  13. echo 0 >/sys/bus/usb/devices/1-1.3/bConfigurationValue
  14. sleep 1
  15. echo 1 >/sys/bus/usb/devices/1-1.3/bConfigurationValue
  16. sleep 4
  17. #Connect to the internet
  18. echo 'Connecting to the internet'
  19. pon
  20. #Fix dns
  21. sleep 15
  22. wget http://your.afraid.org.url.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement