This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
one_off_reboot [2023/05/23 19:46] – -condense, formatting hogwild | one_off_reboot [2024/10/31 21:41] (current) – hogwild | ||
---|---|---|---|
Line 3: | Line 3: | ||
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 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. | ||
- | You might have noticed the option under // | + | You might have noticed the option under // |
- | A simple solution | + | A simple solution is to configure a reboot to be performed only once. FreshTomato includes a miniature version of the Linux crontable command, called " |
You can arrange the the above by adding a command directly into the crontable. | You can arrange the the above by adding a command directly into the crontable. | ||
Line 20: | Line 20: | ||
\\ This command would restart your device at 5:00 AM. | \\ This command would restart your device at 5:00 AM. | ||
+ | |||
+ | It would take effect on a running device, but wouldn' | ||
+ | |||
+ | \\ | ||
The standard Unix cron syntax can be found here: [[https:// | The standard Unix cron syntax can be found here: [[https:// | ||
- | This command will take effect on a running device, but would not be saved permanently in the configuration. Thus, after a reboot, the scheduled activity would automatically disappear, which in this case, is the desired result. | + | \\ |
If you need to remove the scheduled activity before it is executed, use the following command: | If you need to remove the scheduled activity before it is executed, use the following command: | ||
Line 33: | Line 37: | ||
</ | </ | ||
- | | + | \\ \\ To verify the schedule, use the " |
\\ | \\ | ||
Line 40: | Line 44: | ||
cru l | cru l | ||
</ | </ | ||
+ | |||
+ | \\ | ||
\\ | \\ |