4 # This should be called whenever an interface goes down, not just when
5 # it is brought down explicitly.
10 . /etc/sysconfig/network
11 . /etc/rc.d/init.d/functions
12 . /lib/rc-scripts/functions.network
16 # set all major variables
20 get_ppp_device_and_pid
22 # (QoS) Delete root queueing discipline
23 if [ -n "${BANDWIDTH_OUT}" ]; then
24 if [ "${QDISC_CLASS}" = "htb" -o "${QDISC_CLASS}" = "cbq" ]; then
25 tc qdisc del dev ${REALDEVICE} root
26 elif [ -z "${QDISC}" -o "${QDISC}" = "tbf" ]; then
27 tc qdisc del dev ${REALDEVICE} root
28 elif [ -n "${QDISC}" ]; then
29 tc qdisc del dev ${REALDEVICE} root
32 if [ -n "${QDISC}" ]; then
33 tc qdisc del dev ${REALDEVICE} root
37 if [ -n "${BANDWIDTH_IN}" ]; then
38 tc qdisc del dev ${REALDEVICE} ingress
41 # execute run_down() function (if available in device configuration file)
44 # Notify programs that have requested notification