aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-04-21 16:26:47 -0400
committerBill Nottingham <notting@redhat.com>2010-04-21 16:26:47 -0400
commit955bf85bb2213cdf0cf831fab15e36a89fce2c6f (patch)
tree81a84ae06bd7a5feb3cdbcfb1be81544db3d7d3e /sysconfig
parent06fbf1f6d8ae3d5f35f14da4f0b0482bb021bee9 (diff)
downloadinitscripts-955bf85bb2213cdf0cf831fab15e36a89fce2c6f.tar
initscripts-955bf85bb2213cdf0cf831fab15e36a89fce2c6f.tar.gz
initscripts-955bf85bb2213cdf0cf831fab15e36a89fce2c6f.tar.bz2
initscripts-955bf85bb2213cdf0cf831fab15e36a89fce2c6f.tar.xz
initscripts-955bf85bb2213cdf0cf831fab15e36a89fce2c6f.zip
Don't run on odd interfaces. (#584530)
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/net.hotplug2
1 files changed, 2 insertions, 0 deletions
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)