From 955bf85bb2213cdf0cf831fab15e36a89fce2c6f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 21 Apr 2010 16:26:47 -0400 Subject: Don't run on odd interfaces. (#584530) --- sysconfig/network-scripts/net.hotplug | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysconfig/network-scripts') diff --git a/sysconfig/network-scripts/net.hotplug b/sysconfig/network-scripts/net.hotplug index 36181963..b10131d1 100755 --- a/sysconfig/network-scripts/net.hotplug +++ b/sysconfig/network-scripts/net.hotplug @@ -14,6 +14,8 @@ if [ "$INTERFACE" = "" ]; then exit 1 fi +[ "$(cat /sys/class/net/$INTERFACE/type)" != "1" ] && exit 0 + case $ACTION in add|register) -- cgit v1.2.1