Hello OpenWrt community,
Here is what I would like:
When I manually unplug my Ethernet cable and when the following log message appears: "daemon.notice netifd: Network device 'eth0' link is down"
I would like to execute a script.
I've also tried to use the following script located in /etc/hotplug.d/iface/ but it only work during the boot process.
[ "$ACTION" == "ifdown" ] && [ "$INTERFACE" == "eth0" ] && {
logger -t "eth0 down test";
}
Thank you.