summaryrefslogtreecommitdiff
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
commit5cc72a287448a1b154c469d41ddfbcd1b254a993 (patch)
tree5e6c55b4d0592172e22f522697e62e56fb5a26e4 /package/base-files
parent7ac69660fe13ff3f6651a13bcfd2d0470478f900 (diff)
downloadmtk-20170518-5cc72a287448a1b154c469d41ddfbcd1b254a993.zip
mtk-20170518-5cc72a287448a1b154c469d41ddfbcd1b254a993.tar.gz
mtk-20170518-5cc72a287448a1b154c469d41ddfbcd1b254a993.tar.bz2
fix up the network ifname in the network state when receiving iface/ifup events
SVN-Revision: 13399
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 f215d29..03285de 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"
}