summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-04-13 00:43:23 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-04-13 00:43:23 +0000
commitcec137000a9a1f83df31c3b2a210562f9564753e (patch)
treeee90d8f3a41fbb283534792cde2ec5fd886fa8a0 /package/base-files
parent4ed715651306ba1d3b73d9fa2197a55a3443c1d2 (diff)
do not run hotplug event for aliases
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15224 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index 0ab46c18af..d0aa33d1a4 100755
--- a/package/base-files/files/lib/network/config.sh
+++ b/package/base-files/files/lib/network/config.sh
@@ -179,6 +179,9 @@ setup_interface_static() {
done
}
+ config_get type "$config" TYPE
+ [ "$type" = "alias" ] && return 0
+
env -i ACTION="ifup" INTERFACE="$config" DEVICE="$iface" PROTO=static /sbin/hotplug-call "iface" &
}