Skip to content

Instantly share code, notes, and snippets.

@mdeangelo001
mdeangelo001 / crontab
Created November 26, 2015 01:00
Reboot dd-wrt router via web interface and curl
# My DD-WRT router would not reboot reliably except by going through the web interface.
# The reboot settings in the UI did not work consistently, and ssh access did not work
# reliably either. I was able to figure out the following curl command that makes the
# basically presses the Reboot Router button on the Administration->Management screen.
# This crontab reboots the router every night at 3:30 am
30 3 * * * /usr/bin/curl --referer http://192.168.1.1/Management.asp -d submit_button=Management -d action=Reboot -u admin:password --http1.1 -v http://192.168.1.1/apply.cgi