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

reboot at 3.30 am

Discussion in 'Tomato Firmware' started by frode3, Nov 6, 2006.

  1. frode3

    frode3 Network Guru Member

    if i want my router to reboot every night at 3.30 am and use this script
    echo "30 3 * * * root /sbin/reboot" > /etc/cron.d/reboot where to put it? in scripts page there is these four to choose from
    init, shutdown, firewall or wan up?

    thanks

    ps what does word wrap mean on scripts page?
     
  2. turbo53

    turbo53 Network Guru Member

    use the CRU command:

    cru a booter "30 3 * * * root /sbin/reboot"

    "booter" in the above command is just a unique name - you can use whatever name you want.

    enter: cru l

    in order to see all the scheduled cron jobs

    enter: cru d booter
    in oder to delete the cron job with the name "booter"
     
  3. frode3

    frode3 Network Guru Member

    i put this line cru a booter "30 3 * * * root /sbin/reboot"
    in init in scripts page and dont work am i doing somthing wrong?

    thanks
     
  4. The_Unknown

    The_Unknown Network Guru Member

    Use this one:

    cru a reboot "30 3 * * * reboot"
     
  5. frode3

    frode3 Network Guru Member


    worked fine thanks
     
  6. cfdfireman

    cfdfireman Network Guru Member

    now adding to this. how can I set it to shut down the wan port for a specified amount of time during the reboot?
     
  7. sonarman

    sonarman Network Guru Member

    How would I set rebooting to 3am on one day of the week only

    Thanks
     
  8. The_Unknown

    The_Unknown Network Guru Member

    cru a reboot "* * * * * reboot"

    The 5 stars mean (from left to right):

    - minutes
    - hour (0-23)
    - day of month
    - month
    - day of week (0-sunday, and so on)
     
  9. sonarman

    sonarman Network Guru Member

    That worked great, just one more question. After the reboot, the entry was gone, even though I did an nvram commit. How do you get it to stay?
     
  10. digitalgeek

    digitalgeek Network Guru Member

    add it to the init script
     
  11. cfdfireman

    cfdfireman Network Guru Member

    anyone know of a way to shut down the WAN port during a reboot for a specified amount of time?
     
  12. jockel

    jockel LI Guru Member

    Hi,

    Using tomato 1.06, on Linksys WRT54GS 1.1, AP-mode, I have put
    cru a reboot "10 6 * * * reboot" in scripts/init.
    If this scheduled reboot happens, the router comes up again and the wired
    part is working fine. Wireless-radio, according to status page is running,
    but in fact, the wireless is disabled. The clients do not "see" the AP and
    wireless survey performed on a nearby dd-wrt does not show the wirless
    network to be on air!

    If I then simply execute "reboot..." from the menu, the wireless is back up,
    clients connect, dd-wrt survey shows the network.
    Any idea what I should change to have a proper reboot with wireless up
    and running ?

    Jockel
     
  13. jockel

    jockel LI Guru Member

    Hi,
    I have finally found out about the background of the problem:
    The point is not the reboot itself, a certain combination is required.
    The device was set to "wlan off" for a scheduled period of time, i. E.
    from 02:00 AM to 08:00 AM, using the "Access restriction" feature.
    The reboot was scheduled to happen at about 06:00 AM. If the reboot
    happens during the WLAN-off time, then (and only then) the WLAN does
    not come up again as soon as the scheduled "off time" ends.

    This is certainly a minor glitch for me, as I can simply set the reboot to an
    other time. However, I do not know, if other, more important timely settings
    are affected if a reboot happens during the scheduled time. Maybe the
    programmer schould look into that!?

    Best regards
    Jockel
     

Share This Page