ZBT Router Topics
Post Reply
Posts: 4
Joined: Wed Jun 05, 2019 10:26 am
Has thanked: 0
Been thanked: 0


Post by G8351427 » Fri Jun 07, 2019 1:20 pm

Hoping to find out what this is.

I found the following items in /etc/crontab/root :

Code: Select all

0 3 * * * sleep 70 && touch /etc/banner && reboot -f
0,10,20,30,40,50 * * * * /usr/lib/custom/johns_ping.sh
I am not much of a Linux guy, but I can Google pretty hard, so if I understand correctly, crontab is like a task scheduler of sorts. I know what the second item is because I saw it referenced here.

So I think I have figured out that I have two tasks scheduled to run, one of which is the ping script that is present on the WiFix builds of ROOTer and the other looks like it is rebooting the router every day at 3am, based on the syntax of the task.

I guess this explains why my router is rebooting every day at 3am. While troubleshooting that problem, I checked the scheduled tasks tab in Luci and there is nothing listed, so it was not apparent what was causing the problem.

So.. two things:
  1. It seems that the chrontab jobs are not appearing in the scheduled tasks section in ROOter Luci. I am not sure of that is a bug or by design.
  2. I am not sure why there is a job set to reboot the router every day. This seems like something the end user should have control over and should be disabled by default. Further, I didn't find any docs or notes about this feature, and the way it's been implemented seems like a problem since it's not user-facing and you basically need to be a Linux guru to find it.
Anyway. I presume I can delete that root file, since I don't want either of those two tasks running.

Posts: 563
Joined: Thu Aug 30, 2018 8:21 pm
Location: NE GA Mountains
Has thanked: 1 time
Been thanked: 60 times

Re: /etc/crontab/root

Post by swwifty » Fri Jun 07, 2019 3:12 pm

Yes, delete that file. Not sure why both of those would be included by default, unless setup via the GUI.

Post Reply