aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/net.hotplug
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-08-06 15:19:11 -0400
committerBill Nottingham <notting@redhat.com>2012-08-06 15:19:11 -0400
commit031a9ddaf6e25fb92959d5c1d7198a69c6ea6fbd (patch)
treeba228df88e4b1141a592d6108a3ca78c1b6dcb91 /sysconfig/network-scripts/net.hotplug
parentd85174edb7389f670705595804b48aee0278ed2f (diff)
downloadinitscripts-031a9ddaf6e25fb92959d5c1d7198a69c6ea6fbd.tar
initscripts-031a9ddaf6e25fb92959d5c1d7198a69c6ea6fbd.tar.gz
initscripts-031a9ddaf6e25fb92959d5c1d7198a69c6ea6fbd.tar.bz2
initscripts-031a9ddaf6e25fb92959d5c1d7198a69c6ea6fbd.tar.xz
initscripts-031a9ddaf6e25fb92959d5c1d7198a69c6ea6fbd.zip
Drop net.hotplug
Diffstat (limited to 'sysconfig/network-scripts/net.hotplug')
-rwxr-xr-xsysconfig/network-scripts/net.hotplug60
1 files changed, 0 insertions, 60 deletions
diff --git a/sysconfig/network-scripts/net.hotplug b/sysconfig/network-scripts/net.hotplug
deleted file mode 100755
index b10131d1..00000000
--- a/sysconfig/network-scripts/net.hotplug
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-
-# Don't do anything if the network is stopped
-if [ ! -f /var/lock/subsys/network ]; then
- exit 0
-fi
-if [ -f /dev/.in_sysinit ] ; then
- exit 0
-fi
-
-. /etc/sysconfig/network-scripts/network-functions
-
-if [ "$INTERFACE" = "" ]; then
- exit 1
-fi
-
-[ "$(cat /sys/class/net/$INTERFACE/type)" != "1" ] && exit 0
-
-case $ACTION in
-add|register)
-
- case $INTERFACE in
- # interfaces that are brought up as a part of configuration
- ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*)
- exit 0
- ;;
- # interfaces that are registered then brought up
- *)
- export IN_HOTPLUG=1
- if [ -x /sbin/ifup ]; then
- addr=$(get_hwaddr ${INTERFACE})
- if [ -n "$addr" ]; then
- nconfig=$(get_config_by_hwaddr ${addr})
- [ -n "$nconfig" ] && INTERFACE=$nconfig
- fi
- exec /sbin/ifup $INTERFACE
- fi
- ;;
- esac
- ;;
-
-remove|unregister)
- case $INTERFACE in
- # interfaces that are brought down as part of deconfiguration
- ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*)
- exit 0
- ;;
- *)
- export IN_HOTPLUG=1
- if [ -x /sbin/ifdown ]; then
- exec /sbin/ifdown $INTERFACE
- fi
- ;;
- esac
- ;;
-
-*)
- exit 1 ;;
-
-esac