Page 1 of 1

run once on interface down

Posted: Wed Feb 17, 2021 3:34 am
by dakky21
I'm trying this... It's a PPPoE interface called "INTERNET" ... my LTE USB modem hangs after some time and needs a hard reboot to start working again... interface disable/enable doesn't help... so only
/system routerboard usb power-reset
helps.... so I'm trying to have a failover to LTE when interface goes down, but if I put this into scheduler to run each 10 seconds...
:if ([/interface get INTERNET running] = false) do={
  /system routerboard usb power-reset
}
It keeps resetting the USB LTE modem each 10 seconds until PPPoE interface is back up... so it's not a solution, obviously.

How to run it once on interface down? Or any other solution. Thank you