forked from Ivasoft/openwrt
keep track of the network interface states (stored in uci format in /var/state/network, overlay over /etc/config/network)
SVN-Revision: 7643
This commit is contained in:
6
package/base-files/files/etc/hotplug.d/iface/00-netstate
Normal file
6
package/base-files/files/etc/hotplug.d/iface/00-netstate
Normal file
@@ -0,0 +1,6 @@
|
||||
[ ifup = "$ACTION" ] && {
|
||||
uci set "/var/state/network.$INTERFACE.up=1"
|
||||
[ -z "$DEVICE" ] || {
|
||||
uci set "/var/state/network.$INTERFACE.ifname=$DEVICE"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user