1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-02 09:10:37 +02:00
openwrt-xburst/package/base-files/files/etc/hotplug.d/iface/00-netstate
nbd a0accd105e fix up the network ifname in the network state when receiving iface/ifup events
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13399 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-28 16:18:11 +00:00

5 lines
143 B
Plaintext

[ ifup = "$ACTION" ] && {
uci_set_state network "$INTERFACE" up 1
[ -n "$DEVICE" ] && uci_set_state network "$INTERFACE" ifname "$DEVICE"
}