Skip to content

My dd-wrt crontab

here it is:

0 0 * * * root [ ! -f /tmp/wrtbwmon ] && wget “http://pastebin.ca/raw/2088536″ -O /tmp/wrtbwmon && sed -i -e”s/.$//” /tmp/wrtbwmon && chmod +x /tmp/wrtbwmon
*/5 * * * * root /tmp/wrtbwmon setup br0
*/30 0-3 * * * root /tmp/wrtbwmon update /tmp/usage.db peak
*/30,59 4-8 * * * root /tmp/wrtbwmon update /tmp/usage.db offpeak
*/30 9-23 * * * root /tmp/wrtbwmon update /tmp/usage.db peak
45 */2 * * * root /tmp/wrtbwmon publish /tmp/usage.db /tmp/www/usage.htm
0 0 * * * root [ ! -f /tmp/ct2htm ] && wget http://pastebin.ca/raw/2089248 -O /tmp/ct2htm && sed -i -e”s/.$//” /tmp/ct2htm && chmod +x /tmp/ct2htm
* * * * * root /tmp/ct2htm

Couple of customizations here. First, I’ve modified the wrtbmon script to not rely on sort, since it doesn’t exist in Buffalo’s DD-WRT. Also, I’ve set up a small script to format ip_conntrack as HTML. This is so I can keep tabs to see if my QoS settings are working.

Be the first to like.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*