aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ppp
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-08-09 05:09:22 +0000
committerBill Nottingham <notting@redhat.com>2001-08-09 05:09:22 +0000
commit40e74a9fc0cd709ad18aca6bf5196da093fada6b (patch)
tree27d9afe9d0ec6262dec4551840acec85f2d3eb94 /sysconfig/network-scripts/ifup-ppp
parentffbce0700e415d9a57102ab14d5ba2c246080f93 (diff)
downloadinitscripts-40e74a9fc0cd709ad18aca6bf5196da093fada6b.tar
initscripts-40e74a9fc0cd709ad18aca6bf5196da093fada6b.tar.gz
initscripts-40e74a9fc0cd709ad18aca6bf5196da093fada6b.tar.bz2
initscripts-40e74a9fc0cd709ad18aca6bf5196da093fada6b.tar.xz
initscripts-40e74a9fc0cd709ad18aca6bf5196da093fada6b.zip
save resolv.conf for restoration by ifdown-post (#50759)
Diffstat (limited to 'sysconfig/network-scripts/ifup-ppp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index bca290d0..634102ee 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -102,6 +102,7 @@ if [ "${DEFROUTE}" != no ] ; then
opts="$opts defaultroute"
fi
if [ "${PEERDNS}" != no ] ; then
+ cp -f /etc/resolv.conf /etc/resolv.conf.save
opts="$opts usepeerdns"
fi
if [ -n "${MRU}" ] ; then