#!/bin/sh # # ip-up interface-name tty-device speed local-IP remote-IP ipparm # $1 $2 $3 $4 $5 $6 # # (NB: ipparm is string from ipparm parameter in pppd options) # # This file /etc/ppp/ip-up is run by pppd when there's a # successful ppp connection. # # The environment is cleared before executing this script # so the path must be reset. # PATH=/usr/bin:/usr/sbin:/usr/local/bin:/sbin:/bin export PATH # # # Build redirect webpage, put it on ISP's webserver /etc/ppp/ip-up.webpage "$4" # /usr/bin/logger -t "$SCRIPT[$$]" "$1 [$4] connected to ISP [$5]" # Done...