From 5cc72a287448a1b154c469d41ddfbcd1b254a993 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 28 Nov 2008 16:18:11 +0000 Subject: [PATCH] fix up the network ifname in the network state when receiving iface/ifup events SVN-Revision: 13399 --- package/base-files/files/etc/hotplug.d/iface/00-netstate | 1 + 1 file changed, 1 insertion(+) 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" }