-#!/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