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/hotplug.d | |
parent | 7ac69660fe13ff3f6651a13bcfd2d0470478f900 (diff) | |
download | master-31e0f0ae-5cc72a287448a1b154c469d41ddfbcd1b254a993.tar.gz master-31e0f0ae-5cc72a287448a1b154c469d41ddfbcd1b254a993.tar.bz2 master-31e0f0ae-5cc72a287448a1b154c469d41ddfbcd1b254a993.zip |
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/hotplug.d')
-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 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" } |