1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-22 19:56:28 +02:00
openwrt-xburst/package/base-files/files/etc/hotplug.d/iface/00-netstate
nbd 46da140988 keep track of the network interface states (stored in uci format in /var/state/network, overlay over /etc/config/network)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7643 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-16 00:01:33 +00:00

7 lines
157 B
Plaintext

[ ifup = "$ACTION" ] && {
uci set "/var/state/network.$INTERFACE.up=1"
[ -z "$DEVICE" ] || {
uci set "/var/state/network.$INTERFACE.ifname=$DEVICE"
}
}