run once on interface down

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

Part 1) USB modem
What modem you use ? It’s work as PPP or lte1 ?
For Example in PPP-out1 you have a “Dial On Demand” OFF ? If it’s on then you have that problem that PPP will not stay connected.

Part 2) You miss your script. You should check running status of PPP-out1 or lte1 , dependence how your USB Device is recognize in system.