aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-04-13 00:43:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-04-13 00:43:23 +0000
commit3c345b5c8e637cff3e1eafb263dc9f76ac8c26c5 (patch)
treeee90d8f3a41fbb283534792cde2ec5fd886fa8a0
parent53c1991114573d525a036c05397cbcc05ed85ddd (diff)
downloadupstream-3c345b5c8e637cff3e1eafb263dc9f76ac8c26c5.tar.gz
upstream-3c345b5c8e637cff3e1eafb263dc9f76ac8c26c5.tar.bz2
upstream-3c345b5c8e637cff3e1eafb263dc9f76ac8c26c5.zip
do not run hotplug event for aliases
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15224 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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" &
}