#:log info message=“The WAN interface is $nameInt”;
:do { :set nameInt [/ interface lte get value-name=name number=0;]; } on-error={
/log info message=“Reboot for lte1 recovery”;
/delay 8s;
/system reboot;
/log info message=“Shouldn’t reach here after reboot”;
}
However, when I replace the “/system reboot;” with “/system script run reboot-on-demand;”, where reboot-on-demand is a script that enables a scheduled task that reboots… it works!
Am I doing something wrong??
I wish we had a command line switch to /system reboot that would positively disable the keypress, or another command like /system reboot-without-prompt.
Here is the scheduler job (initially disabled) that actually can reboot w/o a prompt. When it is enabled, it immediately disables itself to prevent boot loop, then does the “/system reboot” command which works without prompt…