3 # $Id: ifdown-post,v 1.11 2000/11/16 15:58:55 baggins Exp $
5 # This should be called whenever an interface goes down, not just when
6 # it is brought down explicitly.
11 . /etc/sysconfig/network
12 . /etc/rc.d/init.d/functions
13 . /etc/sysconfig/network-scripts/.functions
17 # full device name as specified by user
19 # detect network device type (ie. dummy, eth for dummy0, eth0 ..)
20 DEVICETYPE=$(echo $DEVICE | awk ' { gsub(/[0-9]*$/,NUL); print $0 } ')
21 # real name of device (ie. is eth0 for eth0,eth0:1,eth0:alias)
22 DEVICE=$(echo $DEVICE | awk ' { gsub(/:.*$/,NUL); print $0 } ')
24 if echo "$FULLDEVNAME" | grep -q ':' ; then
30 # execute run_up() function (if available in device configuration file)
31 [ "$ISALIAS" = "no" ] && run_down
33 # Notify programs that have requested notification