Community discussions

MikroTik App
 
syl201971
just joined
Topic Author
Posts: 13
Joined: Thu Nov 28, 2013 3:47 pm

script run in terminal but not in system script...

Mon Nov 14, 2016 3:26 pm

set R2WIFI value="";
global R2WIFI (:put [/ip route get [find distance=33] gateway]);
put $R2WIFI;
:if ($R2WIFI = "") do={ /ip route disable [find comment=Secondary-wifi]} else={/ip route enable [find comment=Secondary-wifi]; /ip route set gateway=$R2WIFI [find comment=Secondary-wifi]};
 
syl201971
just joined
Topic Author
Posts: 13
Joined: Thu Nov 28, 2013 3:47 pm

Re: script run in terminal but not in system script...

Tue Nov 15, 2016 2:45 pm

any hint anyone !

Who is online

Users browsing this forum: erkexzcx and 75 guests