summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dialup/ppp/files/ip-down')
-rw-r--r--net-dialup/ppp/files/ip-down40
1 files changed, 0 insertions, 40 deletions
diff --git a/net-dialup/ppp/files/ip-down b/net-dialup/ppp/files/ip-down
deleted file mode 100644
index f1422e53d620..000000000000
--- a/net-dialup/ppp/files/ip-down
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-# this is a script which is executed after disconnecting 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
- if [ -x /sbin/resolvconf ]; then
- resolvconf -d "$1"
- else
- # 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
-
- # if an old resolv.conf file exists, restore it
- if [ -e $REALRESOLVCONF.pppd-backup ]; then
- mv $REALRESOLVCONF.pppd-backup $REALRESOLVCONF
- fi
-
- fi
- fi
-fi
-
-if [ -x /etc/init.d/net.$1 ]; then
- if /etc/init.d/net.$1 --quiet status ; then
- export IN_BACKGROUND="true"
- /etc/init.d/net.$1 --quiet stop
- fi
-fi
-
-[ -f /etc/ppp/ip-down.local ] && . /etc/ppp/ip-down.local "$@"