I have a Netgear WNDR3700 V4 router with DD-WRT [v24-sp2 (11/07/14) std] and a question. I was unable to get the nzone.sh cycle method working (something about how the router handles scripts has changed), so I circumvented it with a bunch of cron commands. It looks something like this:
00 00 * * * root nvram set def_whwaddr="MAC1" sleep 3 && nvram commit sleep 5 && reboot
20 00 * * * root nvram set def_whwaddr="MAC2" sleep 3 && nvram commit sleep 5 && reboot
00 08 * * * root nvram set def_whwaddr="MAC1" sleep 3 && nvram commit sleep 5 && reboot
20 08 * * * root nvram set def_whwaddr="MAC2" sleep 3 && nvram commit sleep 5 && reboot
00 16 * * * root nvram set def_whwaddr="MAC1" sleep 3 && nvram commit sleep 5 && reboot
20 16 * * * root nvram set def_whwaddr="MAC2" sleep 3 && nvram commit sleep 5 && reboot
I shortened it for the forum. I've actually got 10 MACs its cycling through every 20 minutes at eight hour intervals. The router I'm using is dual band, so the 2.4 GHz band is the attwifi with a MAC whitelist and hidden ssid (I know, it's pitiful security) and the 5 GHz band is for my computers and stuff. The cron script only affects ath0, the attwifi network so other than the reboots, ath1 is never affected. I would like to be able to control that though. I saw that dd-wrt has the .sesbutton script ability. My scripting is rather shoddy, so I was wondering if someone could tell me how to make a .sesbutton script that when run, would disable/enable both cron and ath0 without rebooting.
Something tantamount to a correct version of:
if cron-enabled -> disable ath0 && disable cron
if cron-disabled -> enable ath0 && enable cron
Since it would be a .sesbutton script, I think that would be all that is needed (it simply runs when the SES/AOSS/EZ-SETUP button is pressed?). If it isn't possible to disable and enable ath0 without interrupting ath1, that's fine. I'm most concerned with disabling and enabling cron with the button press. There are times when I might be backing up files or doing server maintenance when I don't want to be booted off every 20 minutes for 3 hours. While i've become friends with the web gui, I don't want to have to log in every time I want to disable cron.
I hope someone can help me with this so everything's working and in the future when someone like me finds this guide and can't get it to work, there will be a way around it.
If someone else has already answered this, please point me to the post. I tried skimming a large number of the thread pages, but there are a lot.