aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1999-11-12 19:53:32 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1999-11-12 19:53:32 +0000
commit70169370bd5460f433da742fa2e2bfcce1ee7add (patch)
tree1aff880789a111d7d707bb5b1708eaf00cba9ba6 /sysconfig/network-scripts
parentace3709ffda40425302264550d445a102fadb388 (diff)
downloadinitscripts-70169370bd5460f433da742fa2e2bfcce1ee7add.tar
initscripts-70169370bd5460f433da742fa2e2bfcce1ee7add.tar.gz
initscripts-70169370bd5460f433da742fa2e2bfcce1ee7add.tar.bz2
initscripts-70169370bd5460f433da742fa2e2bfcce1ee7add.tar.xz
initscripts-70169370bd5460f433da742fa2e2bfcce1ee7add.zip
allow pppd to set the default route
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index dd7ab2a6..e09c3fd0 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -52,6 +52,9 @@ if [ "${ESCAPECHARS}" != yes ] ; then
opts="$opts asyncmap 00000000"
fi
if [ "${DEFROUTE}" != no ] ; then
+ # pppd will no longer delete an existing default route
+ # so we have to help it out a little here.
+ route del default >/dev/null 2>&1
opts="$opts defaultroute"
fi
if [ "${PEERDNS}" != no ] ; then