diff options
author | Bill Nottingham <notting@redhat.com> | 2001-08-09 03:42:16 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-08-09 03:42:16 +0000 |
commit | 8a998885175388ada90c32ed06000e22648d5b18 (patch) | |
tree | 94aee0ed42abc1789606d2f3d47a20642d2bde86 /sysconfig/network-scripts/ifup-ppp | |
parent | ae0f713b19cce1f749b2d3e4011c6561e4854654 (diff) | |
download | initscripts-8a998885175388ada90c32ed06000e22648d5b18.tar initscripts-8a998885175388ada90c32ed06000e22648d5b18.tar.gz initscripts-8a998885175388ada90c32ed06000e22648d5b18.tar.bz2 initscripts-8a998885175388ada90c32ed06000e22648d5b18.tar.xz initscripts-8a998885175388ada90c32ed06000e22648d5b18.zip |
switch some more things to /sbin/ip; allow adding back of default route for DHCP devices (#48994)
Diffstat (limited to 'sysconfig/network-scripts/ifup-ppp')
-rwxr-xr-x | sysconfig/network-scripts/ifup-ppp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp index 147dc858..bca290d0 100755 --- a/sysconfig/network-scripts/ifup-ppp +++ b/sysconfig/network-scripts/ifup-ppp @@ -96,6 +96,8 @@ fi if [ "${DEFROUTE}" != no ] ; then # pppd will no longer delete an existing default route # so we have to help it out a little here. + DEFRT=`ip route list | awk '/^default / { print $3 }'` + [ -n "${DEFRT}" ] && echo $DEFRT > /etc/default-route route del default >/dev/null 2>&1 opts="$opts defaultroute" fi |