head 1.11; access; symbols; locks alexis:1.11; strict; comment @# @; 1.11 date 98.03.01.22.28.45; author alexis; state Exp; branches; next 1.10; 1.10 date 98.02.05.12.27.22; author alexis; state Exp; branches; next 1.9; 1.9 date 97.11.11.12.17.52; author alexis; state Exp; branches; next 1.8; 1.8 date 97.10.26.17.47.16; author alexis; state Exp; branches; next 1.7; 1.7 date 97.10.26.12.12.32; author alexis; state Exp; branches; next 1.6; 1.6 date 97.10.26.10.43.16; author alexis; state Exp; branches; next 1.5; 1.5 date 97.10.20.18.09.21; author alexis; state Exp; branches; next 1.4; 1.4 date 97.02.25.17.52.25; author alexis; state Exp; branches; next 1.3; 1.3 date 97.02.15.11.42.23; author alexis; state Exp; branches; next 1.2; 1.2 date 97.02.09.17.44.24; author alexis; state Exp; branches; next 1.1; 1.1 date 97.01.22.10.34.39; author alexis; state Exp; branches; next ; desc @@ 1.11 log @sndmsg moved from bin to sbin @ text @#!SCRIPTSHELLCMD_MARKER PROGNAME=`basename $0` # $Id: ip-up.in,v 1.10 1998/02/05 12:27:22 alexis Exp alexis $ VERSION="PATCHLEVEL_MARKER" main() { while [ "X$1" != X ]; do case "$1" in -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 ;; -d) [ "X$2" = X ] && usage VERBOSE_LEVEL=$2 shift ;; -v) VERBOSE_LEVEL=3 ;; -*) usage ;; *) break ;; esac shift done exec LCLSBINDIR_MARKER/sndmsg 4 } usage() { { echo "Usage: $PROGNAME [ -d | -v ] " echo " $PROGNAME -V" } >&2 exit 2 } internal() { echo "$PROGNAME: \ INTERNAL ERROR: $*" exit 2 } VERBOSE_LEVEL=${VERBOSE_LEVEL:-2} error() { FATAL=false while :; do case "$1" in -f) FATAL=true ;; -*) internal "invalid option to error() '$1'" ;; *) break ;; esac shift done if [ $VERBOSE_LEVEL -ge 1 ]; then if [ $FATAL = true ]; then echo "$PROGNAME: \ FATAL ERROR: $*" >&2 else echo "$PROGNAME: \ ERROR: $*" >&2 fi fi [ $FATAL = true ] && exit 1 return 1 } VERBOSE_LEVEL=${VERBOSE_LEVEL:-2} warning() { [ $VERBOSE_LEVEL -ge 2 ] && { echo "$PROGNAME: \ WARNING: $*" >&2; } return 0 } VERBOSE_LEVEL=${VERBOSE_LEVEL:-2} debug() { if [ $VERBOSE_LEVEL -ge $1 ]; then shift if [ "X$MSG_HANDLE" = Xstderr ]; then echo "$PROGNAME: \ DEBUG: $*" >&2 else echo "$PROGNAME: \ DEBUG: $*" fi fi return 0 } VERBOSE_LEVEL=${VERBOSE_LEVEL:-2} info() { [ $VERBOSE_LEVEL -lt 3 ] && return while :; do case "$1" in -*) internal "invalid option to info() '$1'" ;; *) break ;; esac shift done if [ "X$MSG_HANDLE" = Xstderr ]; then echo "$PROGNAME: \ INFO: $*" >&2 else echo "$PROGNAME: \ INFO: $*" fi return 0 } umask 022 main "$@@" exit $? @ 1.10 log @standardised script @ text @d3 1 a3 1 # $Id: utils.sh,v 1.3 1998/02/03 16:16:20 alexis Exp $ d27 1 a27 1 exec LCLBINDIR_MARKER/sndmsg 4 @ 1.9 log @standardised! (shell path replaced by marker) @ text @d3 1 d5 24 a28 1 RCS_ID_IP_UP='$Id: ip-up.in,v 1.8 1997/10/26 17:47:16 alexis Exp alexis $' d32 2 a33 2 { echo "Usage: $PROGNAME " d35 9 a43 2 } >&2 exit 1 d46 54 a99 1 main() d101 3 a103 1 while [ "X$1" != X ]; do d105 1 a105 3 -V) echo "$PROGNAME version $VERSION" exit 0 ;; -*) usage ;; d111 8 a118 1 exec LCLBINDIR_MARKER/sndmsg 4 @ 1.8 log @directory reorganisation @ text @d1 1 a1 1 #!/bin/sh d4 1 a4 1 RCS_ID_IP_UP='$Id: ip-up.in,v 1.7 1997/10/26 12:12:32 alexis Exp alexis $' @ 1.7 log @stamped for release 1.0.6 @ text @d4 1 a4 1 RCS_ID_IP_UP='$Id: ip-up.in,v 1.6 1997/10/26 10:43:16 alexis Exp alexis $' d27 1 a27 1 exec LCLSBINDIR_MARKER/sndmsg 4 @ 1.6 log @*** empty log message *** @ text @d4 1 a4 1 RCS_ID_IP_UP='$Id: ip-up.in,v 1.5 1997/10/20 18:09:21 alexis Exp alexis $' @ 1.5 log @*** empty log message *** @ text @d4 1 a4 1 RCS_ID_IP_UP='$Id: ip-up,v 1.4 1997/02/25 17:52:25 alexis Exp alexis $' d27 1 a27 1 exec /usr/local/sbin/sndmsg 4 @ 1.4 log @fsstnd conformancy abstracted xfer commands and added to config @ text @d2 1 d4 1 a4 1 { expr $VERSION : 'P.*R' > /dev/null; } && VERSION="`echo '$Id: ip-up,v 1.3 1997/02/15 11:42:23 alexis Exp alexis $' | cut -f3 -d' '` (development)" d6 27 a32 1 exec /usr/local/sbin/sndmsg 4 @ 1.3 log @improved version info. @ text @d3 1 a3 1 { expr $VERSION : 'P.*R' > /dev/null; } && VERSION="`echo '$Id$' | cut -f3 -d' '` (development)" d5 1 a5 1 exec /usr/local/lib/ppp/sndmsg 4 @ 1.2 log @changed path of sndmsg @ text @d2 2 @ 1.1 log @Initial revision @ text @d3 1 a3 1 exec /home/alexis/dev/ppp/sndmsg 4 @