Is it a quick way to save my wifi schedule?
It disappears every time I reboot.
Is there a script that can run at startup to fill out the radio schedule?A known issue, has happened to me with both factory & Merlin firmware.
Maybe Asus will fix it one day.
What router model and firmware version are you using?Is there a script that can run at startup to fill out the radio schedule?
nvram show | grep -E "wl._timesched|wl._radio_date_x|wl._radio_time_x|wl._radio_time2_x" > /jffs/scripts/wifisched.nvram
#!/bin/sh
# Create file with "nvram show | grep -E "wl._timesched|wl._radio_date_x|wl._radio_time_x|wl._radio_time2_x" > /jffs/scripts/wifisched.nvram"
while read line
do
nvram set $line
done < /jffs/scripts/wifisched.nvram
nvram commit
Colin,I don't have the same hardware/firmware version as you, but assuming the NVRAM variables haven't changed this should work:
Save your current Wi-Fi schedules:
Code:nvram show | grep -E "wl._timesched|wl._radio_date_x|wl._radio_time_x|wl._radio_time2_x" > /jffs/scripts/wifisched.nvram
Now create a /jffs/scripts/services-start script as follows (or append it to your existing script):
Code:#!/bin/sh # Create file with "nvram show | grep -E "wl._timesched|wl._radio_date_x|wl._radio_time_x|wl._radio_time2_x" > /jffs/scripts/wifisched.nvram" while read line do nvram set $line done < /jffs/scripts/wifisched.nvram nvram commit
There are scripts that run automatically (if they exist) when certain events occur.How will this script be executed automatically at reboot?
It doesn't work.There are scripts that run automatically (if they exist) when certain events occur.
https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts
Can you post a screen shot of your schedule as seen in the GUI. I think I'm misunderstanding what you're trying to do.
It doesn't work.
These are the variables' values I get in the wifisched.nvram file:
View attachment 12505
It looks to me that they don't cover the entire array for all the hours and days of the week
nvram show 2> /dev/null | grep MULTI
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!