From 2d0f9ea2cbecc04eb5c3413aea4ed8a6a44bd698 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 4 Apr 2000 09:18:37 +0000 Subject: remove /etc/resolv.conf.save after the ippp connection down --- sysconfig/network-scripts/ifdown-post | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post index 63cb63f6..06d02a17 100755 --- a/sysconfig/network-scripts/ifdown-post +++ b/sysconfig/network-scripts/ifdown-post @@ -13,7 +13,10 @@ source_config DEVICETYPE=`echo $DEVICE | sed "s/[0-9]*$//"` if [ "${DEVICETYPE}" = "ppp" -o "${DEVICETYPE}" = "ippp" ]; then - [ -f /etc/resolv.conf.save ] && cat /etc/resolv.conf.save > /etc/resolv.conf + if [ -f /etc/resolv.conf.save ]; then + cat /etc/resolv.conf.save > /etc/resolv.conf + rm -f /etc/resolv.conf.save + fi fi # Reset the default route if this interface had a special one -- cgit v1.2.1