I'm trying to setup my RB to turn off wireless signal at say 23:00 and turn it back on at 6:00. I've created 2 tasks and one to run in the morning and one to run at night, but I can't get them to complete the task. I've checked the time, NTP, everything I could think of. Then I figured it was probably the script it self. I've created a script and whenever I execute it, I get this error: syntax error: Expected end of line at row 4 column 25. I've googled it, looked at the wiki, I just can't figure out what's wrong with the code. I just need the script, or even better the schedule to execute these series of commands.
Code: Select all
:put [/log info Starting...];
:put [/interface wireless set wlan1 tx-power=22];
:put [/interface wireless enable wlan];
:put [/log info Wireless Enabled];