diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-06-16 00:01:33 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-06-16 00:01:33 +0000 |
commit | 4f16e9cc3e2c187d19b24785a55ce30a892efd68 (patch) | |
tree | 2f0c604247fa6fd86171a5e3398a4a662f99cb06 /package/base-files/files/etc/hotplug.d | |
parent | 8e2643a8b517b0ff5030f05020c48fc7bc0e85c2 (diff) | |
download | master-31e0f0ae-4f16e9cc3e2c187d19b24785a55ce30a892efd68.tar.gz master-31e0f0ae-4f16e9cc3e2c187d19b24785a55ce30a892efd68.tar.bz2 master-31e0f0ae-4f16e9cc3e2c187d19b24785a55ce30a892efd68.zip |
keep track of the network interface states (stored in uci format in /var/state/network, overlay over /etc/config/network)
SVN-Revision: 7643
Diffstat (limited to 'package/base-files/files/etc/hotplug.d')
-rw-r--r-- | package/base-files/files/etc/hotplug.d/iface/00-netstate | 6 |
1 files changed, 6 insertions, 0 deletions
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 0000000000..fce5472cf2 --- /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" + } +} |