| 1 | #!/bin/shscip-shell filesystem . . `/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:/binscip-shell filesystem . . `/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 [scip-shell system . . `[`. -e /var/log/ppp-ipupdown.logscip-shell filesystem . . `/var/log/ppp-ipupdown.log`. ]; then |
| 19 | exec >> /var/log/ppp-ipupdown.logscip-shell filesystem . . `/var/log/ppp-ipupdown.log`. 2>&1 |
| 20 | echoscip-shell system . . echo. "$0" "$@" |
| 21 | echoscip-shell system . . echo. |
| 22 | fi |
| 23 | |
| 24 | # This script can be used to override the .d files supplied by other packages. |
| 25 | if [scip-shell system . . `[`. -x /etc/ppp/ipv6-up.localscip-shell filesystem . . `/etc/ppp/ipv6-up.local`. ]; then |
| 26 | exec /etc/ppp/ipv6-up.localscip-shell filesystem . . `/etc/ppp/ipv6-up.local`. "$@" |
| 27 | fi |
| 28 | |
| 29 | run-partsscip-shell system . . run-parts. /etc/ppp/ipv6-up.dscip-shell filesystem . . `/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 [scip-shell system . . `[`. -e /var/run/ppp-quickscip-shell filesystem . . `/var/run/ppp-quick`. ]; then |
| 34 | rmscip-shell system . . rm. /var/run/ppp-quickscip-shell filesystem . . `/var/run/ppp-quick`. |
| 35 | wait |
| 36 | killscip-shell system . . kill. "$PPPD_PID" |
| 37 | fi |