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

Connect/Disconnect with Crontab

Discussion in 'HyperWRT Firmware' started by Dave123abc, Dec 11, 2004.

  1. Dave123abc

    Dave123abc Network Guru Member


    I'd like to do the exact same thing the "Connect/Disconnect" button does in the "Status" page.
    I would like to know what the commands are (on Redhat would be ifup eth0 / if down eth0, for example).

    Then, I want to set these commands in Crontab.

    Then I can bring my connection up then down, at the exact time I want to everyday.

    Thanks in advance!
  2. dellsweig

    dellsweig Network Guru Member

    That should work.. ifup/down may not be implemented in busybox but ifconfig is there - do a ifconfig -a to see what your interfaces look like

    You should be able to up/down them via script or command line
  3. Dave123abc

    Dave123abc Network Guru Member

    Thank you Mr. dell.

    I probably should've mentioned, I'm running on "Firmware Version: v3.01.3 - HyperWRT 2.0b3".

    For some reason (I have tried other firmware and commands) I have to go get the "ifconfig" command in the /sbin folder (does not respond from /, for example).

    Also, ifup/down do not work at all.

    I do know that a command exists, cause the "Connect/Disconnect" button in the "Status" page most likely uses it.
    I've telneted around for some ".asp" or ".js" file with some clues, but I think it is in a ".cgi" file. No luck...

    I have also found ip-up and ip-down in the "/tmp/ppp" folder, links towards a "/sbin/rc" file, also did not work.

    I could kill ppp0 by using the information in the "/tmp/var/run/ppp0" file.
    but I still have to bring the connection back up.

    (I will also have to use command lines with "cron" cause the filesystem is "read only", cannot create scripts).

    Would appreciate more information or clues if they are out there.


Share This Page