diff options
author | Than Ngo <than@redhat.com> | 2000-04-04 09:18:37 +0000 |
---|---|---|
committer | Than Ngo <than@redhat.com> | 2000-04-04 09:18:37 +0000 |
commit | 2d0f9ea2cbecc04eb5c3413aea4ed8a6a44bd698 (patch) | |
tree | 742d07242bb276d000d2fd4606e10e272f99dc5a /sysconfig | |
parent | c90a4e556cd66f20016f9e38d0e5b9eeb65bea13 (diff) | |
download | initscripts-2d0f9ea2cbecc04eb5c3413aea4ed8a6a44bd698.tar initscripts-2d0f9ea2cbecc04eb5c3413aea4ed8a6a44bd698.tar.gz initscripts-2d0f9ea2cbecc04eb5c3413aea4ed8a6a44bd698.tar.bz2 initscripts-2d0f9ea2cbecc04eb5c3413aea4ed8a6a44bd698.tar.xz initscripts-2d0f9ea2cbecc04eb5c3413aea4ed8a6a44bd698.zip |
remove /etc/resolv.conf.save after the ippp connection down
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-post | 5 |
1 files changed, 4 insertions, 1 deletions
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 |