Is it possible to set a script to execute when the status of an interface changes?
I need to be able to add/delete routes from the routing table when a pppoe-client interface comes up/goes down.
I cannot use Netwatch to do it, because there is already a route in place that will make everything reachable. Thus I will always be able to ping an IP, whether the pppoe interface is up or down.
This could work.
My only concern, is that the pppoe interface drops and redials in between checks.
The pppoe session is set to reset every 24 hours (I have no control over this).