keep track of the network interface states (stored in uci format in /var/state/networ...
[openwrt/svn-archive/archive.git] / package / base-files / files / etc / hotplug.d / iface / 00-netstate
1 [ ifup = "$ACTION" ] && {
2 uci set "/var/state/network.$INTERFACE.up=1"
3 [ -z "$DEVICE" ] || {
4 uci set "/var/state/network.$INTERFACE.ifname=$DEVICE"
5 }
6 }