head 1.14; access; symbols; locks; strict; comment @# @; 1.14 date 98.10.07.16.47.44; author alexis; state Exp; branches; next 1.13; 1.13 date 98.08.28.17.41.13; author alexis; state Exp; branches; next 1.12; 1.12 date 98.08.28.13.41.33; author alexis; state Exp; branches; next ; desc @SHPP PORT OF ip-up.in 1.11 @ 1.14 log @use received interface name to tell ppplcd which interface is up @ text @#!SCRIPTSHELLCMD_MARKER PROGNAME=`basename $0` # $Id: ip-up.shpp,v 1.13 1998/08/28 17:41:13 alexis Exp alexis $ VERSION="PATCHLEVEL_MARKER" main() { 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 case "$1" in ppp[0-9]*) IFNO=`expr "$1" : 'ppp\([0-9][0-9]*\)$'` ;; *) internal "called by pppd with unexpected interface name ($1)" ;; esac exec LCLSBINDIR_MARKER/sndmsg 4 $IFNO } usage() { { echo "Usage: $PROGNAME [ -d | -v ] " echo " $PROGNAME -V" } >&2 exit 2 } #shpp include utils.sh @ 1.13 log @removed version number tests @ text @d3 1 a3 1 # $Id: ip-up.shpp,v 1.12 1998/08/28 13:41:33 alexis Exp alexis $ d22 6 a27 1 exec LCLSBINDIR_MARKER/sndmsg 4 @ 1.12 log @*** empty log message *** @ text @d3 1 a3 1 # $Id: ip-up.in,v 1.11 1998/03/01 22:28:45 alexis Exp alexis $ d10 2 a11 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 ;; @