[OpenWrt-Devel] netifd: DEVICE= always empty for ACTION=ifdown for scripts in /etc/hotplug.d/iface
Martin Tippmann
mt at i3o.de
Fri Feb 22 03:17:28 EST 2019
Hi,
I'm calling some iptables rules from a scripts in /etc/hotplug.d/iface
and these failed because there seems to be no $DEVICE variable for
ACTION=ifdown events.
It's not really obvious that the device is not populated for ifdown
events, is there a reason for this? I guess the data about the device
must be there and existing.
I'm confused wether this behavoir is intented or a bug, it looks like
this was never working/implemented:
https://git.openwrt.org/?p=project/netifd.git;a=blob;f=interface.c;h=b21d2345bfc9577884e76aaf006dcdb39e330d5b;hb=HEAD#l227
There is also a related bug:
https://bugs.openwrt.org/index.php?do=details&task_id=1741
Thanks,
Martin
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list