This is timeschedule and it's interval is 10 sec and call a script timeschange
Code: Select all
:do {:global ping "[ping 62.240.12.12 count=1]"} while($ping=1);
/system scheduler enable schedule-freqchange;
/system scheduler disable timeschedule
When the schedule-freqchange is enabled it calls a freqchange script
Code: Select all
:if([/interface wireless get wlan1 frequency]=5000) do={ /interface wireless set wlan1 frequency=5470; /ping 62.240.12.12 count=10; /system scheduler enable timeschedule; /system scheduler disable schedule-freqchange } else={/interface wireless set wlan1 frequency=5000; /ping 62.240.12.12 count=10; /system scheduler enable timeschedule; /system scheduler disable schedule-freqchange}
Give me some comment about this one