aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2014-06-10 15:18:13 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-06-10 15:18:13 +0200
commit0c78d0c8de5407d8166220ad7bd265bcb73b3417 (patch)
tree0a6683e5ca0491c48e28e70288c138246eaa127a
parent21582e369e99c4056272c039705effff715bca6c (diff)
downloadinitscripts-0c78d0c8de5407d8166220ad7bd265bcb73b3417.tar
initscripts-0c78d0c8de5407d8166220ad7bd265bcb73b3417.tar.gz
initscripts-0c78d0c8de5407d8166220ad7bd265bcb73b3417.tar.bz2
initscripts-0c78d0c8de5407d8166220ad7bd265bcb73b3417.tar.xz
initscripts-0c78d0c8de5407d8166220ad7bd265bcb73b3417.zip
hotplug: don't call ifup when new vlan appears
-rwxr-xr-xsysconfig/network-scripts/net.hotplug3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/net.hotplug b/sysconfig/network-scripts/net.hotplug
index 36181963..256fea8b 100755
--- a/sysconfig/network-scripts/net.hotplug
+++ b/sysconfig/network-scripts/net.hotplug
@@ -24,6 +24,9 @@ add|register)
;;
# interfaces that are registered then brought up
*)
+ if [ -e /proc/net/vlan/${INTERFACE} ]; then
+ exit 0
+ fi
export IN_HOTPLUG=1
if [ -x /sbin/ifup ]; then
addr=$(get_hwaddr ${INTERFACE})