From c606e009f2639c6b0518c9ad2bdf2b77c35ca6e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 28 May 2020 11:29:34 +0200 Subject: Add netifd with patch to fix service restart --- netifd/files/etc/hotplug.d/iface/00-netstate | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 netifd/files/etc/hotplug.d/iface/00-netstate (limited to 'netifd/files/etc/hotplug.d/iface/00-netstate') diff --git a/netifd/files/etc/hotplug.d/iface/00-netstate b/netifd/files/etc/hotplug.d/iface/00-netstate new file mode 100644 index 0000000..71ccb01 --- /dev/null +++ b/netifd/files/etc/hotplug.d/iface/00-netstate @@ -0,0 +1,6 @@ +[ ifup = "$ACTION" ] && { + uci_toggle_state network "$INTERFACE" up 1 + [ -n "$DEVICE" ] && { + uci_toggle_state network "$INTERFACE" ifname "$DEVICE" + } +} -- cgit v1.2.3