#!MARKER_SHELL_CMD PATH=/bin:/usr/bin PROGNAME=`basename $0` ############################################################################### # # # PRETENDS TO BE PPPD FOR TESTING PURPOSES # # # ############################################################################### ############################################################################### # # Things you should know about this script: # # It is stored under RCS! Keep it that way! If you want a history of # changes made to this script then refer to rlog(1) - don't look here! # ############################################################################### ############################################################################### # # CONFIGURABLE STUFF STARTS HERE # ############################################################################### ############################################################################### # # CONFIGURABLE STUFF ENDS HERE # ############################################################################### VERSION="MARKER_PATCHLEVEL" # $Header: /home/ahuxley/dev/supported/ppplc/lib/misc/RCS/pppd-dummy.shpp,v 1.5 1999/04/28 11:10:19 alexis Exp ahuxley $ ############################################################################### # # MAIN FUNCTION (called from very bottom of script) # ############################################################################### main() { ########################################################################### # # PROCESS OPTIONS # ########################################################################### MODE=unset while [ "X$1" != X ]; do case "$1" in -V) echo "$PROGNAME version $VERSION" exit 0 ;; -d) [ "X$2" = X ] && usage VERBOSE_LEVEL=$2 shift ;; -v) VERBOSE_LEVEL=3 ;; -*) usage ;; *) break ;; esac shift done debug 10 "command line parameters: $@" # Are locks required? They should be, but for the time being no. sleep 30 /etc/ppp/ip-up trap /etc/ppp/ip-down 1 2 15 while :; do sleep 3600; done } usage() { { echo "Usage: $PROGNAME [ -d | -v ] [ ]" echo " $PROGNAME -V" } >&2 exit 1 } #shpp include utils.sh.shpp #shpp include gep.sh.shpp