Debian Codegraph @

debian/extra/ipv6-up

raw symbols SCIP
1 #!/bin/sh
2
3 # The environment is cleared before executing this script
4 # so the path must be reset.
5 PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
6 export PATH
7
8 # These variables are for the use of the scripts run by run-parts
9 PPP_IFACE="$1"
10 PPP_TTY="$2"
11 PPP_SPEED="$3"
12 PPP_LOCAL="$4"
13 PPP_REMOTE="$5"
14 PPP_IPPARAM="$6"
15 export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
16
17 # If /var/log/ppp-ipupdown.log exists use it for logging.
18 if [ -e /var/log/ppp-ipupdown.log ]; then
19 exec >> /var/log/ppp-ipupdown.log 2>&1
20 echo "$0" "$@"
21 echo
22 fi
23
24 # This script can be used to override the .d files supplied by other packages.
25 if [ -x /etc/ppp/ipv6-up.local ]; then
26 exec /etc/ppp/ipv6-up.local "$@"
27 fi
28
29 run-parts /etc/ppp/ipv6-up.d \
30 --arg="$1" --arg="$2" --arg="$3" --arg="$4" --arg="$5" --arg="$6"
31
32 # if pon was called with the "quick" argument, stop pppd
33 if [ -e /var/run/ppp-quick ]; then
34 rm /var/run/ppp-quick
35 wait
36 kill "$PPPD_PID"
37 fi