http://wiki.dd-wrt.com/wiki/index.php?title=Scheduled_reboot&action=history&feed=atom Scheduled reboot - Revision history 2024-03-28T12:27:57Z Revision history for this page on the wiki MediaWiki 1.10.1 http://wiki.dd-wrt.com/wiki/index.php?title=Scheduled_reboot&diff=56342&oldid=prev Kernel-panic69: /* Alternative without the need of cron */ (fix numbering) 2022-11-02T03:18:57Z <p><span class="autocomment">Alternative without the need of cron -</span> (fix numbering)</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 03:18, 2 November 2022</td> </tr> <tr><td colspan="2" align="left"><strong>Line 30:</strong></td> <td colspan="2" align="left"><strong>Line 30:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Alternative without the need of cron ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Alternative without the need of cron ==</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>Go to DD-WRT configuration page</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;ol&gt;</ins></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>Disable scheduled reboot in '''Administration -&gt; Keep Alive '''</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>Go to DD-WRT configuration page</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del> '''Administration -&gt; Commands '''</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>Disable scheduled reboot in '''Administration -&gt; Keep Alive '''</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>Input</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins> '''Administration -&gt; Commands '''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>Input</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"> </del>&gt;/tmp/reboot.sh</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;pre&gt; </ins>&gt;/tmp/reboot.sh</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> echo 'current_year=&quot;1970&quot;'&gt;&gt;/tmp/reboot.sh</td><td> </td><td style="background: #eee; font-size: smaller;"> echo 'current_year=&quot;1970&quot;'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> echo 'while [ $current_year -eq 1970 ]'&gt;&gt;/tmp/reboot.sh</td><td> </td><td style="background: #eee; font-size: smaller;"> echo 'while [ $current_year -eq 1970 ]'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2" align="left"><strong>Line 49:</strong></td> <td colspan="2" align="left"><strong>Line 50:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> echo 'reboot'&gt;&gt;/tmp/reboot.sh</td><td> </td><td style="background: #eee; font-size: smaller;"> echo 'reboot'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> echo '/bin/sh /tmp/reboot.sh &amp;'&gt;/tmp/reboot0.sh</td><td> </td><td style="background: #eee; font-size: smaller;"> echo '/bin/sh /tmp/reboot.sh &amp;'&gt;/tmp/reboot0.sh</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> /bin/sh /tmp/reboot0.sh</td><td>+</td><td style="background: #cfc; font-size: smaller;"> /bin/sh /tmp/reboot0.sh<ins style="color: red; font-weight: bold; text-decoration: none;">&lt;/pre&gt;</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>'''Save Startup'''</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>'''Save Startup'''</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>You can edit this at any time</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>You can edit this at any time</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>Now reboot the router. It will from now on reboot every day at 4.30 am</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>Now reboot the router. It will from now on reboot every day at 4.30 am</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;/ol&gt;</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Scripts]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Scripts]]</td></tr> </table> Kernel-panic69 http://wiki.dd-wrt.com/wiki/index.php?title=Scheduled_reboot&diff=56341&oldid=prev Kernel-panic69: /* Not working as intended */ (fix numbering) 2022-11-02T03:16:28Z <p><span class="autocomment">Not working as intended -</span> (fix numbering)</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 03:16, 2 November 2022</td> </tr> <tr><td colspan="2" align="left"><strong>Line 11:</strong></td> <td colspan="2" align="left"><strong>Line 11:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Up to build r41189 as per this thread: https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1177905#top, it was found that in client mode, scheduled reboot does not work or more so, it only does it for the first time set, despite it being put as &quot;every day.&quot; To fix this I used code which a moderator passed onto me and hopefully it works for you too.</td><td> </td><td style="background: #eee; font-size: smaller;">Up to build r41189 as per this thread: https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1177905#top, it was found that in client mode, scheduled reboot does not work or more so, it only does it for the first time set, despite it being put as &quot;every day.&quot; To fix this I used code which a moderator passed onto me and hopefully it works for you too.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>Go to DD-WRT configuration page</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;ol&gt;</ins></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>Disable scheduled reboot in '''Administration -&gt; Keep Alive '''</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>Go to DD-WRT configuration page</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>'''Administration -&gt; Commands '''</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>Disable scheduled reboot in '''Administration -&gt; Keep Alive '''</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>Input</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>'''Administration -&gt; Commands '''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>Input</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"> </del>echo &quot;startservice run_rc_shutdown; /sbin/reboot&quot; &gt; /tmp/restart_router</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;pre&gt;</ins>echo &quot;startservice run_rc_shutdown; /sbin/reboot&quot; &gt; /tmp/restart_router</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> chmod a+x /tmp/restart_router</td><td> </td><td style="background: #eee; font-size: smaller;"> chmod a+x /tmp/restart_router</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> echo &quot;55 5 * * * root /tmp/restart_router&quot; &gt; /tmp/cron.d/restartrouter</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo &quot;55 5 * * * root /tmp/restart_router&quot; &gt; /tmp/cron.d/restartrouter<ins style="color: red; font-weight: bold; text-decoration: none;">&lt;/pre&gt;</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>'''Save Startup'''</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>'''Save Startup'''</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>You can edit this at any time</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>You can edit this at any time</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"># </del>I would also recommend giving your router a reboot just to be sure. '''Administration -&gt; Management''' should be good enough</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;li&gt; </ins>I would also recommend giving your router a reboot just to be sure. '''Administration -&gt; Management''' should be good enough</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">&lt;/ol&gt;</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">The above configuration will then restart every day at 5:55am assuming you have set the [[NTP]] correctly. You may also find it useful to find out more information on [[CRON]]</td><td> </td><td style="background: #eee; font-size: smaller;">The above configuration will then restart every day at 5:55am assuming you have set the [[NTP]] correctly. You may also find it useful to find out more information on [[CRON]]</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Editors note: I have no idea how to fix the numbers whilst giving the code box.</td><td colspan="2">&nbsp;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Alternative without the need of cron ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Alternative without the need of cron ==</td></tr> </table> Kernel-panic69 http://wiki.dd-wrt.com/wiki/index.php?title=Scheduled_reboot&diff=55099&oldid=prev Peno at 19:03, 5 December 2019 2019-12-05T19:03:40Z <p></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 19:03, 5 December 2019</td> </tr> <tr><td colspan="2" align="left"><strong>Line 20:</strong></td> <td colspan="2" align="left"><strong>Line 20:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> echo &quot;55 5 * * * root /tmp/restart_router&quot; &gt; /tmp/cron.d/restartrouter</td><td> </td><td style="background: #eee; font-size: smaller;"> echo &quot;55 5 * * * root /tmp/restart_router&quot; &gt; /tmp/cron.d/restartrouter</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"># '''Save <del style="color: red; font-weight: bold; text-decoration: none;">startup</del>'''</td><td>+</td><td style="background: #cfc; font-size: smaller;"># '''Save <ins style="color: red; font-weight: bold; text-decoration: none;">Startup</ins>'''</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># You can edit this at any time</td><td> </td><td style="background: #eee; font-size: smaller;"># You can edit this at any time</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># I would also recommend giving your router a reboot just to be sure. '''Administration -&gt; Management''' should be good enough</td><td> </td><td style="background: #eee; font-size: smaller;"># I would also recommend giving your router a reboot just to be sure. '''Administration -&gt; Management''' should be good enough</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">The above configuration will then restart every day at 5:55am assuming you have set the [[NTP]] correctly. You may also find it useful to find out more information on [[CRON]]</td><td> </td><td style="background: #eee; font-size: smaller;">The above configuration will then restart every day at 5:55am assuming you have set the [[NTP]] correctly. You may also find it useful to find out more information on [[CRON]]</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Editors note: I have no idea how to fix the numbers whilst giving the code box.</td><td> </td><td style="background: #eee; font-size: smaller;">Editors note: I have no idea how to fix the numbers whilst giving the code box.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">== Alternative without the need of cron ==</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># Go to DD-WRT configuration page</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># Disable scheduled reboot in '''Administration -&gt; Keep Alive '''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># '''Administration -&gt; Commands '''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># Input</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo 'current_year=&quot;1970&quot;'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo 'while [ $current_year -eq 1970 ]'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo 'do'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo ' sleep 60'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo ' current_year=$(date +&quot;%Y&quot;)'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo 'done'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo 'current_epoch=$(date +%s)'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo 'target_epoch=$(date -d `date +&quot;%Y%m%d0430&quot;` +%s)'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo 'sleep_seconds=$(( $target_epoch - $current_epoch ))'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo 'if [[ ${sleep_seconds:0:1} == &quot;-&quot; ]] ; then sleep_seconds=$(( $sleep_seconds + 86400 )); fi'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo 'sleep $sleep_seconds'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo 'reboot'&gt;&gt;/tmp/reboot.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> echo '/bin/sh /tmp/reboot.sh &amp;'&gt;/tmp/reboot0.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> /bin/sh /tmp/reboot0.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># '''Save Startup'''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># You can edit this at any time</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># Now reboot the router. It will from now on reboot every day at 4.30 am</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Scripts]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Scripts]]</td></tr> </table> Peno http://wiki.dd-wrt.com/wiki/index.php?title=Scheduled_reboot&diff=54978&oldid=prev Ian5142: Fixed in r41189, https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321629 and https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1177905#top 2019-10-18T16:37:40Z <p>Fixed in r41189, https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321629 and https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1177905#top</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 16:37, 18 October 2019</td> </tr> <tr><td colspan="2" align="left"><strong>Line 9:</strong></td> <td colspan="2" align="left"><strong>Line 9:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Not working as intended ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Not working as intended ==</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">On DD-WRT v24-sp2 (06</del>/<del style="color: red; font-weight: bold; text-decoration: none;">14</del>/<del style="color: red; font-weight: bold; text-decoration: none;">11) Build 17201 </del>- <del style="color: red; font-weight: bold; text-decoration: none;">I have </del>found that in client mode, scheduled reboot does not work or more so, it only does it for the first time set, despite it being put as &quot;every day.&quot; To fix this I used code which a moderator passed onto me and hopefully it works for you too.</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">Up to build r41189 as per this thread: https:</ins>//<ins style="color: red; font-weight: bold; text-decoration: none;">forum.dd</ins>-<ins style="color: red; font-weight: bold; text-decoration: none;">wrt.com/phpBB2/viewtopic.php?p=1177905#top, it was </ins>found that in client mode, scheduled reboot does not work or more so, it only does it for the first time set, despite it being put as &quot;every day.&quot; To fix this I used code which a moderator passed onto me and hopefully it works for you too.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># Go to DD-WRT configuration page</td><td> </td><td style="background: #eee; font-size: smaller;"># Go to DD-WRT configuration page</td></tr> </table> Ian5142 http://wiki.dd-wrt.com/wiki/index.php?title=Scheduled_reboot&diff=53119&oldid=prev Ian5142: /* What it can be used for */ 2017-11-16T19:22:12Z <p><span class="autocomment">What it can be used for</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 19:22, 16 November 2017</td> </tr> <tr><td colspan="2" align="left"><strong>Line 4:</strong></td> <td colspan="2" align="left"><strong>Line 4:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">I find that using a scheduled reboot often gives a brilliant transfer and receive rate for wireless which makes a huge difference when in client mode. The higher to the maximum transfer and receive (whilst assuming no other wireless clients are heavily using it such as downloading) I can receive extremely low ping between my primary router and secondary router - around 1-2 ms average with a distance of around 50 metres set in the ACK timer.</td><td> </td><td style="background: #eee; font-size: smaller;">I find that using a scheduled reboot often gives a brilliant transfer and receive rate for wireless which makes a huge difference when in client mode. The higher to the maximum transfer and receive (whilst assuming no other wireless clients are heavily using it such as downloading) I can receive extremely low ping between my primary router and secondary router - around 1-2 ms average with a distance of around 50 metres set in the ACK timer.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">It is necessary for WDS to work as intended. When the WDS AP is rebooted, manually or do to power outage, the WDS stations need to reboot in order to reconnect to the WDS AP. Keep Alive, allows this. Just type in the ip of the WDS AP, put in a time of 300 or 1000 s and click apply.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Not working as intended ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Not working as intended ==</td></tr> </table> Ian5142 http://wiki.dd-wrt.com/wiki/index.php?title=Scheduled_reboot&diff=43178&oldid=prev Glenn: + Category:Scripts 2012-06-23T08:55:07Z <p>+ <a href="/wiki/index.php/Category:Scripts" title="Category:Scripts">Category:Scripts</a></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 08:55, 23 June 2012</td> </tr> <tr><td colspan="2" align="left"><strong>Line 26:</strong></td> <td colspan="2" align="left"><strong>Line 26:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Editors note: I have no idea how to fix the numbers whilst giving the code box.</td><td> </td><td style="background: #eee; font-size: smaller;">Editors note: I have no idea how to fix the numbers whilst giving the code box.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:Scripts]]</td></tr> </table> Glenn http://wiki.dd-wrt.com/wiki/index.php?title=Scheduled_reboot&diff=41226&oldid=prev Shadowdogg: /* Not working as intended */ 2011-09-09T22:06:26Z <p><span class="autocomment">Not working as intended</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 22:06, 9 September 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 10:</strong></td> <td colspan="2" align="left"><strong>Line 10:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># Go to DD-WRT configuration page</td><td> </td><td style="background: #eee; font-size: smaller;"># Go to DD-WRT configuration page</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"># Disable scheduled reboot in <del style="color: red; font-weight: bold; text-decoration: none;">&quot;&quot;</del>Administration -&gt; Keep Alive<del style="color: red; font-weight: bold; text-decoration: none;">&quot;&quot;</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"># Disable scheduled reboot in <ins style="color: red; font-weight: bold; text-decoration: none;"> '''</ins>Administration -&gt; Keep Alive <ins style="color: red; font-weight: bold; text-decoration: none;">'''</ins></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"># <del style="color: red; font-weight: bold; text-decoration: none;">&quot;&quot;</del>Administration -&gt; Commands<del style="color: red; font-weight: bold; text-decoration: none;">&quot;&quot;</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"># <ins style="color: red; font-weight: bold; text-decoration: none;"> '''</ins>Administration -&gt; Commands <ins style="color: red; font-weight: bold; text-decoration: none;">'''</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># Input</td><td> </td><td style="background: #eee; font-size: smaller;"># Input</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td colspan="2" align="left"><strong>Line 18:</strong></td> <td colspan="2" align="left"><strong>Line 18:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> echo &quot;55 5 * * * root /tmp/restart_router&quot; &gt; /tmp/cron.d/restartrouter</td><td> </td><td style="background: #eee; font-size: smaller;"> echo &quot;55 5 * * * root /tmp/restart_router&quot; &gt; /tmp/cron.d/restartrouter</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"># <del style="color: red; font-weight: bold; text-decoration: none;">&quot;&quot;</del>Save startup<del style="color: red; font-weight: bold; text-decoration: none;">&quot;&quot;</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"># <ins style="color: red; font-weight: bold; text-decoration: none;"> '''</ins>Save startup<ins style="color: red; font-weight: bold; text-decoration: none;">'''</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># You can edit this at any time</td><td> </td><td style="background: #eee; font-size: smaller;"># You can edit this at any time</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"># I would also recommend giving your router a reboot just to be sure. <del style="color: red; font-weight: bold; text-decoration: none;">From the </del>Administration -&gt; Management should be good enough</td><td>+</td><td style="background: #cfc; font-size: smaller;"># I would also recommend giving your router a reboot just to be sure. <ins style="color: red; font-weight: bold; text-decoration: none;">'''</ins>Administration -&gt; Management<ins style="color: red; font-weight: bold; text-decoration: none;">''' </ins>should be good enough</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">The above configuration will then restart every day at 5:55am assuming you have set the [[NTP]] correctly. You may also find it useful to find out more information on [[CRON]]</td><td> </td><td style="background: #eee; font-size: smaller;">The above configuration will then restart every day at 5:55am assuming you have set the [[NTP]] correctly. You may also find it useful to find out more information on [[CRON]]</td></tr> </table> Shadowdogg http://wiki.dd-wrt.com/wiki/index.php?title=Scheduled_reboot&diff=41225&oldid=prev Shadowdogg: /* Not working as intended */ 2011-09-09T12:22:25Z <p><span class="autocomment">Not working as intended</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 12:22, 9 September 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 10:</strong></td> <td colspan="2" align="left"><strong>Line 10:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># Go to DD-WRT configuration page</td><td> </td><td style="background: #eee; font-size: smaller;"># Go to DD-WRT configuration page</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"># Disable scheduled reboot in Administration -&gt; Keep Alive</td><td>+</td><td style="background: #cfc; font-size: smaller;"># Disable scheduled reboot in <ins style="color: red; font-weight: bold; text-decoration: none;">&quot;&quot;</ins>Administration -&gt; Keep Alive<ins style="color: red; font-weight: bold; text-decoration: none;">&quot;&quot;</ins></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"># Administration -&gt; Commands</td><td>+</td><td style="background: #cfc; font-size: smaller;"># <ins style="color: red; font-weight: bold; text-decoration: none;">&quot;&quot;</ins>Administration -&gt; Commands<ins style="color: red; font-weight: bold; text-decoration: none;">&quot;&quot;</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># Input</td><td> </td><td style="background: #eee; font-size: smaller;"># Input</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td colspan="2" align="left"><strong>Line 18:</strong></td> <td colspan="2" align="left"><strong>Line 18:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> echo &quot;55 5 * * * root /tmp/restart_router&quot; &gt; /tmp/cron.d/restartrouter</td><td> </td><td style="background: #eee; font-size: smaller;"> echo &quot;55 5 * * * root /tmp/restart_router&quot; &gt; /tmp/cron.d/restartrouter</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"># Save startup</td><td>+</td><td style="background: #cfc; font-size: smaller;"># <ins style="color: red; font-weight: bold; text-decoration: none;">&quot;&quot;</ins>Save startup<ins style="color: red; font-weight: bold; text-decoration: none;">&quot;&quot;</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># You can edit this at any time</td><td> </td><td style="background: #eee; font-size: smaller;"># You can edit this at any time</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># I would also recommend giving your router a reboot just to be sure. From the Administration -&gt; Management should be good enough</td><td> </td><td style="background: #eee; font-size: smaller;"># I would also recommend giving your router a reboot just to be sure. From the Administration -&gt; Management should be good enough</td></tr> </table> Shadowdogg http://wiki.dd-wrt.com/wiki/index.php?title=Scheduled_reboot&diff=41224&oldid=prev Shadowdogg: /* Not working as intended */ 2011-09-09T12:20:52Z <p><span class="autocomment">Not working as intended</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 12:20, 9 September 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 10:</strong></td> <td colspan="2" align="left"><strong>Line 10:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># Go to DD-WRT configuration page</td><td> </td><td style="background: #eee; font-size: smaller;"># Go to DD-WRT configuration page</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"># Disable scheduled reboot Administration -&gt; Keep Alive</td><td>+</td><td style="background: #cfc; font-size: smaller;"># Disable scheduled reboot <ins style="color: red; font-weight: bold; text-decoration: none;">in </ins>Administration -&gt; Keep Alive</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># Administration -&gt; Commands</td><td> </td><td style="background: #eee; font-size: smaller;"># Administration -&gt; Commands</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"># Input</td><td> </td><td style="background: #eee; font-size: smaller;"># Input</td></tr> </table> Shadowdogg http://wiki.dd-wrt.com/wiki/index.php?title=Scheduled_reboot&diff=41223&oldid=prev Shadowdogg: /* What it can be used for */ 2011-09-09T12:20:02Z <p><span class="autocomment">What it can be used for</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 12:20, 9 September 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 3:</strong></td> <td colspan="2" align="left"><strong>Line 3:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Scheduled reboot is often used to give the routers a little clearing now and then to keep its performance at its peak. It can also be used in combination with uPnP with the setting &quot;clear ports at startup&quot; enabled to give the benefits of uPnP without the drawbacks of gaps in your security (for long periods of time anyway).</td><td> </td><td style="background: #eee; font-size: smaller;">Scheduled reboot is often used to give the routers a little clearing now and then to keep its performance at its peak. It can also be used in combination with uPnP with the setting &quot;clear ports at startup&quot; enabled to give the benefits of uPnP without the drawbacks of gaps in your security (for long periods of time anyway).</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">I find that using a scheduled reboot often gives a brilliant transfer and receive rate for wireless which makes a huge difference when in client mode. The higher to the maximum transfer and receive (whilst assuming no other wireless clients are heavily using it such as downloading) I can receive extremely low ping between my primary router and secondary router - around 1-2 ms average with a distance of around <del style="color: red; font-weight: bold; text-decoration: none;">50metres </del>set in the ACK timer.</td><td>+</td><td style="background: #cfc; font-size: smaller;">I find that using a scheduled reboot often gives a brilliant transfer and receive rate for wireless which makes a huge difference when in client mode. The higher to the maximum transfer and receive (whilst assuming no other wireless clients are heavily using it such as downloading) I can receive extremely low ping between my primary router and secondary router - around 1-2 ms average with a distance of around <ins style="color: red; font-weight: bold; text-decoration: none;">50 metres </ins>set in the ACK timer.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Not working as intended ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Not working as intended ==</td></tr> </table> Shadowdogg