fix up the network ifname in the network state when receiving iface/ifup events
[openwrt/svn-archive/archive.git] / package / base-files / files / etc / hotplug.d / iface / 00-netstate
1 [ ifup = "$ACTION" ] && {
2 uci_set_state network "$INTERFACE" up 1
3 [ -n "$DEVICE" ] && uci_set_state network "$INTERFACE" ifname "$DEVICE"
4 }