Device: LtAP LTE6
rOS: 7.12.1
I want to disable wlan1 on startup for a period of time. The script itself works perfectly when I run it manually:
{/interface/set wlan1 disabled=yes
:delay 30s;
/interface/set wlan1 disabled=no}
But on startup wlan1 is not disabled as expected. The script has read & write permissions, and same for the scheduler. ‘script-time’ is ‘startup’ and ‘interval’ is ‘0’ as per rOS documentation. I have tried both setting scheduler to simply reference the script itself, and also set the script in scheduler directly, but neither work. The script will show 1 run and there are no log entries to review. I’m sure I’m missing something obvious here.
[admin@LTE] > system scheduler/export
/system scheduler
add name=WiFiDelay on-event="{/interface/set wlan1 disabled=yes\r\
\n:delay 30s;\r\
\n/interface/set wlan1 disabled=no}" policy=read,write start-time=startup
OR
[admin@LTE] > system scheduler/export
/system scheduler
add name=WiFiDelay on-event="/system script run \"WiFiDelay\"" policy=read,write start-time=startup
[admin@LTE] > system script/export
/system script
add dont-require-permissions=no name=WiFiDelay owner=admin policy=read,write source="{/interface/set wlan1 disabled=yes\r\
\n:delay 30s;\r\
\n/interface/set wlan1 disabled=no}"