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