head 1.5; access; symbols; locks ahuxley:1.5; strict; comment @# @; 1.5 date 99.04.28.11.10.19; author alexis; state Exp; branches; next 1.4; 1.4 date 99.02.20.18.10.15; author alexis; state Exp; branches; next 1.3; 1.3 date 99.01.07.13.19.09; author alexis; state Exp; branches; next 1.2; 1.2 date 98.08.28.17.41.13; author alexis; state Exp; branches; next 1.1; 1.1 date 98.08.28.13.41.57; author alexis; state Exp; branches; next ; desc @DUMMY VERSION OF PPPD FOR TESTING @ 1.5 log @added gep.sh.shpp usage @ text @#!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: /diskb/home/alexis/dev/supported/ppplc/lib/misc/RCS/pppd-dummy.shpp,v 1.4 1999/02/20 18:10:15 alexis Exp alexis $ ############################################################################### # # 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 @ 1.4 log @removed lockfile generator (not used). @ text @d33 1 a33 1 # $Header: /diskb/home/alexis/dev/supported/ppplc/lib/misc/RCS/pppd-dummy.shpp,v 1.3 1999/01/07 13:19:09 alexis Exp alexis $ d85 1 @ 1.3 log @symbol name changes @ text @d33 1 a33 1 # $Header: pppd-dummy.shpp,v 1.2 1998/08/28 17:41:13 alexis Exp alexis $ d67 1 a67 2 # Are locks required? Yes #lock || error "locking failed" d71 1 a71 1 trap '/etc/ppp/ip-down; unlock' 1 2 15 a72 7 # don't expect to get here unlock } gen_lock_file_name() { echo /tmp/$PROGNAME.pid @ 1.2 log @removed version number tests @ text @d1 1 a1 1 #!SCRIPTSHELLCMD_MARKER d32 2 a33 2 VERSION="PATCHLEVEL_MARKER" # $Id: pppd-dummy.shpp,v 1.1 1998/08/28 13:41:57 alexis Exp alexis $ d68 1 a68 1 lock d92 1 a92 1 #shpp include utils.sh @ 1.1 log @Initial revision @ text @d33 1 a33 1 # $Id: announce.in,v 1.11 1998/08/27 15:38:42 alexis Exp alexis $ d53 2 a54 7 -V) if expr "$VERSION" : 'P.*R$' > /dev/null; then warning "this is a development version; use 'ident' for version information" exit 1 else echo "$PROGNAME version $VERSION" exit 0 fi ;; @