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.lede-project.org./?a=commitdiff_plain;h=5cc72a287448a1b154c469d41ddfbcd1b254a993;p=openwrt%2Fstaging%2Fjow.git 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" }