diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-11-28 16:18:11 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-11-28 16:18:11 +0000 |
commit | 5cc72a287448a1b154c469d41ddfbcd1b254a993 (patch) | |
tree | 5e6c55b4d0592172e22f522697e62e56fb5a26e4 /package/base-files/files/etc | |
parent | 7ac69660fe13ff3f6651a13bcfd2d0470478f900 (diff) | |
download | mtk-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/files/etc')
-rw-r--r-- | package/base-files/files/etc/hotplug.d/iface/00-netstate | 1 |
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" } |