This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| one_off_reboot [2021/09/13 16:49] – hogwild | one_off_reboot [2024/10/31 21:41] (current) – hogwild | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Schedule a One-off Reboot (or any command | + | ====== Schedule a One-off Reboot (or any other command) ====== |
| - | \\ | + | What if you wanted to perform, for example, a restart of your hardware device? You might not want to perform that action until some conditions are met. For example, when users stop needing Internet connectivity. |
| - | What if you wanted | + | You might have noticed the option under // |
| - | You might have noticed the option under Administration/ | + | A simple solution is to configure a reboot |
| - | A simple solution to this is to have a reboot performed only once. FreshTomato includes a miniature version of the Linux crontable | + | You can arrange the the above by adding |
| - | The above can be done by adding a command directly into the crontable. | + | \\ |
| For example: | For example: | ||
| + | |||
| + | \\ | ||
| <code -> | <code -> | ||
| Line 17: | Line 19: | ||
| </ | </ | ||
| - | | + | \\ This command would restart your device at 5:00 AM. |
| - | This will take effect on a running device, but is not saved permanently in the configuration. Thus, after a reboot, the scheduled activity | + | It would take effect on a running device, but wouldn' |
| - | If you need to remove the scheduled activity | + | \\ |
| + | |||
| + | The standard Unix cron syntax can be found here: [[https:// | ||
| + | |||
| + | \\ | ||
| + | |||
| + | If you need to remove the scheduled activity before it is executed, use the following command: | ||
| + | |||
| + | \\ | ||
| <code -> | <code -> | ||
| Line 27: | Line 37: | ||
| </ | </ | ||
| - | | + | \\ \\ To verify the schedule, use the " |
| + | |||
| + | \\ | ||
| <code -> | <code -> | ||
| cru l | cru l | ||
| </ | </ | ||
| + | |||
| + | \\ | ||
| + | |||
| + | \\ | ||
| + | |||
| + | \\ | ||