]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - sysconfig/network-scripts/ifdown-post
- merge from TOTALNEW branch (see NEWS for more info)
[projects/rc-scripts.git] / sysconfig / network-scripts / ifdown-post
index 687c40414e41e501c2ee03ee41b497c8c227e789..6ad03d0be310cfcc63bf45d6d1e9801e77e49754 100755 (executable)
@@ -1,14 +1,37 @@
-#!/bin/bash
+#!/bin/sh
+#
+#      $Id: ifdown-post,v 1.12 2001/05/15 16:03:44 baggins Exp $
+#
 # This should be called whenever an interface goes down, not just when
 # it is brought down explicitly.
 
-cd /etc/sysconfig/network-scripts
+run_down() { :; }
 
 CONFIG=$1
-. network-functions
+. /etc/sysconfig/network
+. /etc/rc.d/init.d/functions
+. /etc/sysconfig/network-scripts/.functions
+
 source_config
 
+# set all major variables
+setup_ip_param
+
+# set REALDEVICE
+get_ppp_device_and_pid
+
+# Delete root queueing discipline
+if [ -n "$QDISC" ]; then
+       tc qdisc del dev "$REALDEVICE" root $QDISC
+fi
+
+# execute run_down() function (if available in device configuration file)
+run_down
+
 # Notify programs that have requested notification
 do_netreport
 
 exit 0
+
+# This must be last line !
+# vi:syntax=sh:tw=78:ts=8:sw=4
This page took 0.17115 seconds and 4 git commands to generate.