1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

external reconnect script

Discussion in 'Tomato Firmware' started by carsten84, Mar 5, 2007.

  1. carsten84

    carsten84 LI Guru Member

    Hi
    Is there a possibility to do a reconnect per batch-file from my computer?
    In DD-Wrt this was possible as described here. Is there a chance of getting this work in tomato 1.04?

    Carsten
     
  2. bogderpirat

    bogderpirat Network Guru Member

  3. carsten84

    carsten84 LI Guru Member

  4. psychowood

    psychowood LI Guru Member

    You could use expect (I prefer it instead of using a normal script because it avoids network timeouts errors) to log in the router and issue a chain of commands like "ifcongif ppp0 down, ifconfig ppp0 ip-down, ifconfig ppp0 ip-release". Probably isn't the easiest way, but should work flawlessly (I use a similar script to send mails via smtp) :)
     
  5. bogderpirat

    bogderpirat Network Guru Member

    sorry, apparently i was too fixated on the link you gave and actually ignored what you originally wanted.

    try that url:
    http://192.168.0.1/service.cgi?_service=wan-restart&_redirect=status-overview.asp&_sleep=5

    http get requests must be given in the form of script.ext?variable=value&variable2=value2.
     
  6. carsten84

    carsten84 LI Guru Member

Share This Page