I'm writing an update script that needs to check a parameter value on wlan interface. The problem is that, with a scheduler that runs on startup, the interface is not loaded yet. So, for performance reasons, instead of waiting x seconds, I decided to check if interface was loaded and wait until it loads. But when I do so, the script runs in 6.47.10 but not in 6.42 because the variable access seems different in the execute command.
Can someone solve the problem with that script or have any other way to wait until interface is fully loaded?
Code: Select all
:global loaded false;
:execute ("
:set \$loaded ([/interface wireless get wlan1 name] = \"wlan1\");");
:delay 1;
:put $loaded;
Thank you!