Hello.
I try made script, which execute command if wireless interface (/interface wireles) is exist, something like this:
:if ( wireless_is_exist ) do={ :put "lala" }
but I can’t invent condition, can you please help me with this question?
Hello.
I try made script, which execute command if wireless interface (/interface wireles) is exist, something like this:
:if ( wireless_is_exist ) do={ :put "lala" }
but I can’t invent condition, can you please help me with this question?
This will check if the board has wireless interface.
{
:do {
:if ([:len [/interface wireless find ]]>0) do={:put “wireless found”}} on-error={:put “No wireless interface found”};
}
Thank you very much!