head 1.4; access; symbols; locks ahuxley:1.4; strict; comment @# @; 1.4 date 99.04.28.11.11.50; author alexis; state Exp; branches; next 1.3; 1.3 date 99.01.08.17.21.51; author alexis; state Exp; branches; next 1.2; 1.2 date 99.01.03.16.11.19; author alexis; state Exp; branches; next 1.1; 1.1 date 98.10.21.14.58.43; author alexis; state Exp; branches; next ; desc @IP-UP REPLACEMENT @ 1.4 log @included gep.sh.shpp included ../../bin/ppplc_msgids.shpp - which meant that sndmsg calls can now use shpp variables instead of explicit message id numbers @ text @#!MARKER_SHELL_CMD PROGNAME=`basename $0` # $Header: /diskb/home/alexis/dev/supported/ppplc/lib/ppp/RCS/ip-up.shpp,v 1.3 1999/01/08 17:21:51 alexis Exp alexis $ VERSION="MARKER_PATCHLEVEL" FACILITY=daemon #shpp include ../../bin/ppplc_msgids.shpp SNDMSG=MARKER_LCLBINDIR/sndmsg 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 if [ "X$PPP_IFACE" != X ]; then # This is a /etc/ppp/ip-up.d/ script. IFNAME=$PPP_IFACE elif [ "X$1" != X ]; then # This is a normal /etc/ppp/ip-up script IFNAME=$1 else internal "called by pppd with unexpected no interface name" fi debug 10 "interface name is $IFNAME" IFNO=`expr "$IFNAME" : 'ppp\([0-9][0-9]*\)$'` exec $SNDMSG MARKER_MSGID_EXEC_IPUP $IFNO } usage() { { echo "Usage: $PROGNAME [ -d | -v ] [ ]" echo " $PROGNAME -V" } >&2 exit 2 } #shpp include utils.sh.shpp #shpp include gep.sh.shpp @ 1.3 log @merged Hamm and Slink versions. (Hamm script got interface name via command line, Slink via environment.) @ text @d3 1 a3 1 # $Header: /diskb/home/alexis/dev/ppplc/lib/ppp/RCS/ip-up.shpp,v 1.2 1999/01/03 16:11:19 alexis Exp alexis $ d6 2 d37 1 a37 1 exec MARKER_LCLBINDIR/sndmsg 4 $IFNO d50 1 @ 1.2 log @tidied corrected path to sndmsg changed utils.sh to utils.sh.shpp @ text @d3 1 a3 1 # $Header: ip-up.shpp,v 1.1 1998/10/21 14:58:43 alexis Exp alexis $ d23 9 a31 4 case "$1" in ppp[0-9]*) IFNO=`expr "$1" : 'ppp\([0-9][0-9]*\)$'` ;; *) internal "called by pppd with unexpected interface name ($1)" ;; esac d33 2 d41 1 a41 1 echo "Usage: $PROGNAME [ -d | -v ] " @ 1.1 log @Initial revision @ text @d1 1 a1 1 #!SCRIPTSHELLCMD_MARKER d3 3 a5 2 # $Id: ip-up.shpp,v 1.14 1998/10/07 16:47:44 alexis Exp $ VERSION="PATCHLEVEL_MARKER" d28 1 a28 1 exec LCLSBINDIR_MARKER/sndmsg 4 $IFNO d40 1 a40 2 #shpp include utils.sh @