aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-02-01 02:38:53 +0000
committerBill Nottingham <notting@redhat.com>2005-02-01 02:38:53 +0000
commitc57f6436cc27a9cb02c421ac435b561225f84d7b (patch)
treef0f327e30eb3f0c10f2f410c02b9770776aff577 /sysconfig
parentd970c83241173cf4e71cb1549a6c64ffb4461127 (diff)
downloadinitscripts-c57f6436cc27a9cb02c421ac435b561225f84d7b.tar
initscripts-c57f6436cc27a9cb02c421ac435b561225f84d7b.tar.gz
initscripts-c57f6436cc27a9cb02c421ac435b561225f84d7b.tar.bz2
initscripts-c57f6436cc27a9cb02c421ac435b561225f84d7b.tar.xz
initscripts-c57f6436cc27a9cb02c421ac435b561225f84d7b.zip
handle saved resolv.conf on all device types
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifdown-post8
1 files changed, 5 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post
index b88e5e3b..ed944950 100755
--- a/sysconfig/network-scripts/ifdown-post
+++ b/sysconfig/network-scripts/ifdown-post
@@ -8,13 +8,15 @@ cd /etc/sysconfig/network-scripts
CONFIG=$1
source_config
-if [ "${DEVICETYPE}" = "ppp" -o "${DEVICETYPE}" = "ippp" ]; then
+if [ "$PEERDNS" != "no" -o -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; then
if [ -f /etc/resolv.conf.save ]; then
change_resolv_conf /etc/resolv.conf.save
rm -f /etc/resolv.conf.save
fi
- if [ -f /etc/ppp/peers/$DEVICE ] ; then
- rm -f /etc/ppp/peers/$DEVICE
+ if [ "${DEVICETYPE}" = "ppp" -o "${DEVICETYPE}" = "ippp" ]; then
+ if [ -f /etc/ppp/peers/$DEVICE ] ; then
+ rm -f /etc/ppp/peers/$DEVICE
+ fi
fi
fi