diff options
author | Than Ngo <than@redhat.com> | 2000-04-04 08:29:10 +0000 |
---|---|---|
committer | Than Ngo <than@redhat.com> | 2000-04-04 08:29:10 +0000 |
commit | c90a4e556cd66f20016f9e38d0e5b9eeb65bea13 (patch) | |
tree | 299ca48354dd353ef47df8332a50ada4f439c5c7 /sysconfig/network-scripts/ifup-post | |
parent | cc71b1d4eb728893e4133ef99937401d33f57c6c (diff) | |
download | initscripts-c90a4e556cd66f20016f9e38d0e5b9eeb65bea13.tar initscripts-c90a4e556cd66f20016f9e38d0e5b9eeb65bea13.tar.gz initscripts-c90a4e556cd66f20016f9e38d0e5b9eeb65bea13.tar.bz2 initscripts-c90a4e556cd66f20016f9e38d0e5b9eeb65bea13.tar.xz initscripts-c90a4e556cd66f20016f9e38d0e5b9eeb65bea13.zip |
fix overwrite problem of resolv.conf on ippp/ppp/slip connections
Diffstat (limited to 'sysconfig/network-scripts/ifup-post')
-rwxr-xr-x | sysconfig/network-scripts/ifup-post | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post index 4f146058..76d00e4c 100755 --- a/sysconfig/network-scripts/ifup-post +++ b/sysconfig/network-scripts/ifup-post @@ -72,7 +72,10 @@ if [ "$PEERDNS" != "no" -o "$RESOLV_MODS" != "no" ]; then echo "search $DOMAIN $search" >> $tr fi done - + + # backup resolv.conf + cp -af /etc/resolv.conf /etc/resolv.conf.save + # maintain permissions # but set umask in case it doesn't exist! oldumask=`umask` |