From: nbd Date: Fri, 28 Nov 2008 16:18:11 +0000 (+0000) Subject: fix up the network ifname in the network state when receiving iface/ifup events X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=a0accd105e104b94d6d6aab243040da02fee4167;p=10.03%2Fopenwrt.git 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 --- diff --git a/package/base-files/files/etc/hotplug.d/iface/00-netstate b/package/base-files/files/etc/hotplug.d/iface/00-netstate index f215d29b5..03285de18 100644 --- a/package/base-files/files/etc/hotplug.d/iface/00-netstate +++ b/package/base-files/files/etc/hotplug.d/iface/00-netstate @@ -1,3 +1,4 @@ [ ifup = "$ACTION" ] && { uci_set_state network "$INTERFACE" up 1 + [ -n "$DEVICE" ] && uci_set_state network "$INTERFACE" ifname "$DEVICE" }