From: Felix Fietkau 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://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=e3dc4d8257b1b5126787ff30910bd9f094aaaa26 fix up the network ifname in the network state when receiving iface/ifup events SVN-Revision: 13399 --- 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 f215d29b53..03285de18f 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" }