Wireless Schedule via Crontab

Introduction

To disable the wireless users at a specific time during the day…say 10:45am-1:00pm you can use this how-to

Note that a plugin with this functionality and a nice GUI for it, written by BashfulBladder is available for installation via the plugins interface in Gargoyle 1.5.10 and later. Users of previous versions of Gargoyle (or those who just like configuring things via the command line) can follow the instructions below.

Edit Crontab file

SSH into your router with putty or winSCP

edit /etc/crontabs/root

vi /etc/crontabs/root

Add these example lines

30 22 * * * wifi down
30 6 * * * wifi up

To enable new the schedule either reboot the router or run

/etc/init.d/cron stop
/etc/init.d/cron start

Crontab syntax

minute (0-59), hour (0-23, 0 = midnight), day (1-31), month (1-12), weekday (0-6, 0 = Sunday)

Turn wifi off at 10:30pm

30 22 * * * wifi down

Turn wifi on at 6:30pm

30 6 * * * wifi up

wireless_schedule.txt · Last modified: 2013/05/21 16:09 by eric
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki