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

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

How to undo/cancel the scheduled reboot via terminal

Discussion in 'Asuswrt-Merlin' started by wizin, Sep 15, 2019.

  1. wizin

    wizin Regular Contributor

    Joined:
    Aug 18, 2013
    Messages:
    78
    #!/bin/sh
    cru a ScheduledReboot "0 4 * * * /sbin/reboot"

    I want to undo this since at times, it completely shuts of the router on my AC86U
     
  2. ColinTaylor

    ColinTaylor Part of the Furniture

    Joined:
    Mar 31, 2014
    Messages:
    9,415
    Location:
    UK
    If those are the only lines in that script then delete the script.
     
  3. Martineau

    Martineau Part of the Furniture

    Joined:
    Jul 8, 2012
    Messages:
    2,320
    Location:
    UK
    Display the existing cron entries
    Code:
    cru l
    
    0 4 * * * /sbin/reboot #ScheduledReboot#
    then delete the cron schedule by using its 'tag'
    Code:
    cru d ScheduledReboot
    
    cru l
     
  4. wizin

    wizin Regular Contributor

    Joined:
    Aug 18, 2013
    Messages:
    78
    Did I do this correctly? I set mine at 5:15AM
     

    Attached Files:

  5. ColinTaylor

    ColinTaylor Part of the Furniture

    Joined:
    Mar 31, 2014
    Messages:
    9,415
    Location:
    UK
    No you didn't. But your output shows something different from what your original post said. :rolleyes: So what is the truth? Are you using the script in post #1 or the AMTM option shown in your screen shot. The screen shot also shows a reboot time of 05:25, not the 05:15 you stated.
     
    dave14305 likes this.
  6. wizin

    wizin Regular Contributor

    Joined:
    Aug 18, 2013
    Messages:
    78
    I believe its 5:25, not 5:15 and I did follow https://github.com/RMerl/asuswrt-merlin/wiki/Scheduled-Reboot ( I think ) but now I went to amtm options and there was reboot scheduler there - rs
    I removed that, will that resolve it?
     

    Attached Files:

    • 22.jpg
      22.jpg
      File size:
      35.7 KB
      Views:
      24
  7. ColinTaylor

    ColinTaylor Part of the Furniture

    Joined:
    Mar 31, 2014
    Messages:
    9,415
    Location:
    UK
    Look in the /jffs/scripts/init-start file. If you can't see any lines that contain the reboot command then it's been disabled (i.e. deleted).