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 . /lib/rc-scripts/functions.network
17 # set all major variables
21 get_ppp_device_and_pid
23 # (QoS) Delete root queueing discipline
24 if [ -n "${BANDWIDTH_OUT}" ]; then
25 if [ "${QDISC_CLASS}" = "htb" -o "${QDISC_CLASS}" = "cbq" ]; then
26 tc qdisc del dev ${REALDEVICE} root
27 elif [ -z "${QDISC}" -o "${QDISC}" = "tbf" ]; then
28 tc qdisc del dev ${REALDEVICE} root
29 elif [ -n "${QDISC}" ]; then
30 tc qdisc del dev ${REALDEVICE} root
33 if [ -n "${QDISC}" ]; then
34 tc qdisc del dev ${REALDEVICE} root
38 if [ -n "${BANDWIDTH_IN}" ]; then
39 tc qdisc del dev ${REALDEVICE} ingress
42 # execute run_down() function (if available in device configuration file)
45 # Notify programs that have requested notification