#!/bin/sh
#
# $Id: vmoduser_handle.in,v 2.8 2023-08-07 17:38:31+05:30 Cprogrammer Exp mbhangui $
#
verbose=0
toggle=0
args=$*
while getopts avVutxHnCm:S:I:D:c:q:dpwisobr0123h:e:l:P:0123456789 opt
do
	case $opt in
		a|u|t|x|d|p|w|i|s|o|b|r);;
		V) echo $Id: vmoduser_handle.in,v 2.8 2023-08-07 17:38:31+05:30 Cprogrammer Exp mbhangui $ ;;
		v) verbose=1;;
		n) toggle=1;;
		q) quota="$OPTARG";;
		c) gecos="$OPTARG";;
		P) passwd="$OPTARG";;
		e) epasswd="$OPTARG";;
		h) HASH=$OPTARG;;
		C) cram=1;;
		m) scram_method=$OPTARG;;
		S) b64salt="$OPTARG";;
		I) iter="$OPTARG";;
		D) dateFormat=$OPTARG;;
		l) vacation_file="$OPTARG";;
		0-9) ;;
		H) help=1;;
		?) exit 1;;
	esac
done
if [ -n "$passwd" -o -n "$epasswd" ] ; then
	if [ -n "$SERVICEDIR" ] ; then
		servicedir=$SERVICEDIR
	else
		servicedir=/service*
	fi
	cd /
	/usr/bin/svc -h $servicedir/inlookup.infifo
fi
shift $((OPTIND-1))
# now do something with $@
if [ $verbose -ne 0 ] ; then
	exec /usr/bin/vuserinfo $@
fi
exit 0
#
# $Log: vmoduser_handle.in,v $
# Revision 2.8  2023-08-07 17:38:31+05:30  Cprogrammer
# updated argument list for getopt
#
# Revision 2.7  2023-07-31 21:52:45+05:30  Cprogrammer
# cd to root before doing svc -h
#
# Revision 2.6  2023-03-20 10:37:40+05:30  Cprogrammer
# use SERVICEDIR env variable if set for service directory
#
# Revision 2.5  2022-09-14 08:48:00+05:30  Cprogrammer
# added all vmoduser getopt options
#
#
