]> git.pld-linux.org Git - projects/rc-scripts.git/blob - sysconfig/network-scripts/ifdown-post
- merge my private tree
[projects/rc-scripts.git] / sysconfig / network-scripts / ifdown-post
1 #!/bin/sh
2 #
3 #       $Id: ifdown-post,v 1.10.2.2 2001/09/30 10:19:42 misiek Exp $
4 #
5 # This should be called whenever an interface goes down, not just when
6 # it is brought down explicitly.
7
8 CONFIG=$1
9 . /etc/sysconfig/network
10 . /etc/rc.d/init.d/functions
11 . /etc/sysconfig/network-scripts/functions.network
12
13 source_config
14
15 # set all major variables
16 setup_ip_param
17
18 # set REALDEVICE
19 get_ppp_device_and_pid
20
21 # Delete root queueing discipline
22 if [ -n "$QDISC" ]; then
23         tc qdisc del dev "$REALDEVICE" root $QDISC
24 fi
25
26 # Notify programs that have requested notification
27 do_netreport
28
29 exit 0
30
31 # This must be last line !
32 # vi:syntax=sh:tw=78:ts=8:sw=4
33
This page took 0.034823 seconds and 3 git commands to generate.