diff options
author | Paul Mackerras <paulus@samba.org> | 1999-04-01 11:44:16 +0000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 1999-04-01 11:44:16 +0000 |
commit | cde2830f103bd3ad372b0e33263d589ad7db88e2 (patch) | |
tree | 79c36c9dd401229b2815d872353bd38ec78e5320 /scripts/ip-down.local.add | |
parent | 1f32921b4018b34f7b05b2302f5946f58f48df61 (diff) | |
download | ppp-cde2830f103bd3ad372b0e33263d589ad7db88e2.tar.gz |
examples for RH linux
Diffstat (limited to 'scripts/ip-down.local.add')
-rw-r--r-- | scripts/ip-down.local.add | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/ip-down.local.add b/scripts/ip-down.local.add new file mode 100644 index 0000000..b93590e --- /dev/null +++ b/scripts/ip-down.local.add @@ -0,0 +1,20 @@ + +# +# This sample code shows you one way to modify your setup to allow automatic +# configuration of your resolv.conf for peer supplied DNS addresses when using +# the `usepeerdns' option. +# +# In my case I just added this to my /etc/ppp/ip-down.local script. You may need to +# create an executable script if one does not exist. +# +# Nick Walker (nickwalker@email.com) +# + +if [ -n "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then + if [ -f /etc/ppp/resolv.prev ]; then + cp -f /etc/ppp/resolv.prev /etc/resolv.conf + else + rm -f /etc/resolv.conf + fi +fi + |