summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dialup/ppp/files/2.4.2b3/ip-up')
-rw-r--r--net-dialup/ppp/files/2.4.2b3/ip-up44
1 files changed, 0 insertions, 44 deletions
diff --git a/net-dialup/ppp/files/2.4.2b3/ip-up b/net-dialup/ppp/files/2.4.2b3/ip-up
deleted file mode 100644
index fb7e20788706..000000000000
--- a/net-dialup/ppp/files/2.4.2b3/ip-up
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-# this is a script which is executed after connecting the ppp interface.
-# look at man pppd for details
-
-# the followings parameters are available:
-# $1 = interface-name
-# $2 = tty-device
-# $3 = speed
-# $4 = local-IP-address
-# $5 = remote-IP-address
-# $6 = ipparam
-
-if [ "$USEPEERDNS" ]; then
-
- # add the server supplied DNS entries to /etc/resolv.conf
- # (taken from debian's 0000usepeerdns)
-
- # follow any symlink to find the real file
- REALRESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
-
- if [ "$REALRESOLVCONF" != "/etc/ppp/resolv.conf" ]; then
-
- # merge the new nameservers with the other options from the old configuration
- {
- grep --invert-match '^nameserver[[:space:]]' $REALRESOLVCONF
- cat /etc/ppp/resolv.conf
- } > $REALRESOLVCONF.tmp
-
- # backup the old configuration and install the new one
- cp -a $REALRESOLVCONF $REALRESOLVCONF.pppd-backup
- mv $REALRESOLVCONF.tmp $REALRESOLVCONF
-
- # Change perms because it b0rked kppp
- /bin/chmod 640 /etc/resolv.conf
- /bin/chown root:users /etc/resolv.conf
-
- fi
-
-fi
-
-[ -f /etc/init.d/firewall ] && /etc/init.d/firewall start
-
-[ -f /etc/ppp/ip-up.local ] && . /etc/ppp/ip-up.local $1 $2 $3 $4 $5 $6