From 4f16e9cc3e2c187d19b24785a55ce30a892efd68 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 16 Jun 2007 00:01:33 +0000 Subject: keep track of the network interface states (stored in uci format in /var/state/network, overlay over /etc/config/network) SVN-Revision: 7643 --- package/base-files/files/etc/hotplug.d/iface/00-netstate | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 package/base-files/files/etc/hotplug.d/iface/00-netstate (limited to 'package/base-files/files/etc/hotplug.d/iface/00-netstate') diff --git a/package/base-files/files/etc/hotplug.d/iface/00-netstate b/package/base-files/files/etc/hotplug.d/iface/00-netstate new file mode 100644 index 0000000..fce5472 --- /dev/null +++ b/package/base-files/files/etc/hotplug.d/iface/00-netstate @@ -0,0 +1,6 @@ +[ ifup = "$ACTION" ] && { + uci set "/var/state/network.$INTERFACE.up=1" + [ -z "$DEVICE" ] || { + uci set "/var/state/network.$INTERFACE.ifname=$DEVICE" + } +} -- cgit v1.1