help me with dlink DSL-2750U modem reboot script

Better option would be to put the modem in bridge mode and configure the device in which you have installed pyload to dial and establish the PPP connection. Connect / Disconnect timings can be very easily controlled by cron jobs.

To make the modem reboot, you will have to write a script to simulate loading the web interface, navigate to the reboot page and submit the request.

The first solution seems easier and will be well documented everywhere.
 
#[member='varkey']

thank you

the folowing script works for me

#!/bin/sh

curl "http://username:password@192.168.1.1/rebootinfo.cgi"

input modem username and password
 
This is what i use with DSL-2750U
Code:
#!/usr/bin/expect -f
log_user 0
spawn /usr/bin/telnet 192.168.1.1
expect "username:"
send "admin\r"
expect "Password:"
send "admin\r"
#log_user 0
expect "TBS "
send "reboot\r"
expect "TBS "
#send "/bin/ls\r"
send exit\r
expect "TBS "
send exit\r
expect "Y/N\[N\]:"
send "Y\r"
interact
 
Back
Top