diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-11-28 16:18:11 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-11-28 16:18:11 +0000 |
commit | a0accd105e104b94d6d6aab243040da02fee4167 (patch) | |
tree | b6bd935029a9705e982b86f5807121ccc69aa8cf /package/base-files/files/etc | |
parent | f479350b0c414a45de9467f16590c93fda1d6d7d (diff) |
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/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 f215d29b5..03285de18 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" } |