aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-post
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2000-01-31 22:24:10 +0000
committerNalin Dahyabhai <nalin@redhat.com>2000-01-31 22:24:10 +0000
commita84618ee572933ecd2958963a4e1e3ff1fc41082 (patch)
tree93a27de64b2837c8e9a813383353ee20b42d89d7 /sysconfig/network-scripts/ifdown-post
parentd1eccdf7232e954803c3b5379f3a3a6eca5f3b01 (diff)
downloadinitscripts-a84618ee572933ecd2958963a4e1e3ff1fc41082.tar
initscripts-a84618ee572933ecd2958963a4e1e3ff1fc41082.tar.gz
initscripts-a84618ee572933ecd2958963a4e1e3ff1fc41082.tar.bz2
initscripts-a84618ee572933ecd2958963a4e1e3ff1fc41082.tar.xz
initscripts-a84618ee572933ecd2958963a4e1e3ff1fc41082.zip
* sysconfig/network-scripts/ifdown-post:
attempt to reset the default route in case we dropped it for PPP * src/ipcalc.1: document the "--silent" option * src/shvar.c: strtok() and other cleanups * rc.d/rc.sysinit: make symlinks for System.map and module-info automatically
Diffstat (limited to 'sysconfig/network-scripts/ifdown-post')
-rwxr-xr-xsysconfig/network-scripts/ifdown-post5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post
index 460b072c..49dfa5b4 100755
--- a/sysconfig/network-scripts/ifdown-post
+++ b/sysconfig/network-scripts/ifdown-post
@@ -8,6 +8,11 @@ cd /etc/sysconfig/network-scripts
CONFIG=$1
source_config
+# Reset the default route if this interface had a special one
+if ! check_default_route ; then
+ add_default_route
+fi
+
# Notify programs that have requested notification
do_netreport