]> git.pld-linux.org Git - projects/rc-scripts.git/blame - lib/ifdown-post
drop raidutils (raidstart, /etc/raidtab) support. our geninitrd doesn't support it...
[projects/rc-scripts.git] / lib / ifdown-post
CommitLineData
d29c401a 1#!/bin/sh
b0443108 2#
ec8b15cb 3# $Id$
b0443108 4#
7742e157
AF
5# This should be called whenever an interface goes down, not just when
6# it is brought down explicitly.
7
201c98b9
AM
8run_down() { :; }
9
7742e157 10CONFIG=$1
f3002e12
JK
11. /etc/sysconfig/network
12. /etc/rc.d/init.d/functions
f67ce454 13. /lib/rc-scripts/functions.network
8b3e2b71 14
7742e157
AF
15source_config
16
de1fc6ce
JR
17# set all major variables
18setup_ip_param
19
20# set REALDEVICE
21get_ppp_device_and_pid
22
45f7fc7c
AM
23# (QoS) Delete root queueing discipline
24if [ -n "${BANDWIDTH_OUT}" ]; then
5e6dfc29
JR
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
31 fi
45f7fc7c 32else
5e6dfc29
JR
33 if [ -n "${QDISC}" ]; then
34 tc qdisc del dev ${REALDEVICE} root
35 fi
45f7fc7c
AM
36fi
37
38if [ -n "${BANDWIDTH_IN}" ]; then
5e6dfc29 39 tc qdisc del dev ${REALDEVICE} ingress
97c76ad5
AM
40fi
41
de1fc6ce
JR
42# execute run_down() function (if available in device configuration file)
43run_down
97c76ad5 44
7742e157
AF
45# Notify programs that have requested notification
46do_netreport
47
48exit 0
This page took 0.114271 seconds and 4 git commands to generate.