summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/ppp/scripts/ip-up.local.add
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2002-08-22 15:26:01 +0000
committerMystery Man <unknown@mandriva.org>2002-08-22 15:26:01 +0000
commitadd076e220fdffdeb6de5ae9a9efb6c7e3e0303e (patch)
tree956c3d91d4b8cfc7851ad7e02301fe5e6db1aa66 /mdk-stage1/ppp/scripts/ip-up.local.add
parent76761ff24d3358147c214490defbab4910201d73 (diff)
downloaddrakx-add076e220fdffdeb6de5ae9a9efb6c7e3e0303e.tar
drakx-add076e220fdffdeb6de5ae9a9efb6c7e3e0303e.tar.gz
drakx-add076e220fdffdeb6de5ae9a9efb6c7e3e0303e.tar.bz2
drakx-add076e220fdffdeb6de5ae9a9efb6c7e3e0303e.tar.xz
drakx-add076e220fdffdeb6de5ae9a9efb6c7e3e0303e.zip
This commit was manufactured by cvs2svn to create tag 'V1_1_9_16mdk'.V1_1_9_16mdk
Diffstat (limited to 'mdk-stage1/ppp/scripts/ip-up.local.add')
-rw-r--r--mdk-stage1/ppp/scripts/ip-up.local.add24
1 files changed, 0 insertions, 24 deletions
diff --git a/mdk-stage1/ppp/scripts/ip-up.local.add b/mdk-stage1/ppp/scripts/ip-up.local.add
deleted file mode 100644
index 80172093a..000000000
--- a/mdk-stage1/ppp/scripts/ip-up.local.add
+++ /dev/null
@@ -1,24 +0,0 @@
-
-#
-# 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-up.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
- rm -f /etc/ppp/resolv.prev
- if [ -f /etc/resolv.conf ]; then
- cp /etc/resolv.conf /etc/ppp/resolv.prev
- grep domain /etc/ppp/resolv.prev > /etc/resolv.conf
- grep search /etc/ppp/resolv.prev >> /etc/resolv.conf
- cat /etc/ppp/resolv.conf >> /etc/resolv.conf
- else
- cp /etc/ppp/resolv.conf /etc
- fi
-fi
-