aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-11-28 16:18:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-11-28 16:18:11 +0000
commita8e1d247acc764e9709cc2abf2033ebe03a1ad4a (patch)
treeb6bd935029a9705e982b86f5807121ccc69aa8cf /package/base-files
parent4dfe6c0658819ed45fb900e18469daa0baf10c48 (diff)
downloadupstream-a8e1d247acc764e9709cc2abf2033ebe03a1ad4a.tar.gz
upstream-a8e1d247acc764e9709cc2abf2033ebe03a1ad4a.tar.bz2
upstream-a8e1d247acc764e9709cc2abf2033ebe03a1ad4a.zip
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
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/files/etc/hotplug.d/iface/00-netstate1
1 files changed, 1 insertions, 0 deletions
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"
}