#!/bin/sh
# opieinit: Backwards compatibility front-end for opiepasswd
#
# Portions of this software are Copyright 1995 by Randall Atkinson and Dan
# McDonald, All Rights Reserved. All Rights under this copyright are assigned
# to the U.S. Naval Research Laboratory (NRL). The NRL Copyright Notice and
# License Agreement applies to this software.
#
#       History:
#
#       Fixed header for OPIE 2.01.
#       Written at NRL for OPIE 2.0.
#

CONSOLEMODE=1
WHO="";

for i in $*; 
do
	case $i in
		-v)	opiepasswd -v;
			exit 1;;
		-s)	CONSOLEMODE=0;
			exit 1;;
		-*)	echo "usage: $0 [-h] [-v] [-s] [user_name]";
			exit 1;;
	esac
	WHO="$i";
done

echo "Reminder: Use opiepasswd instead of opieinit"

exec opiepasswd $WHO
