#	@(#) accounts 3.0 18mar94 Morgan_Davis @(#)
#	Accounts -- Installs Adduser Information
#	(C)opyright 1994 Morgan Davis Group

clear
echo "^MThis script helps you set up accounting information (or technically,"
echo "your \"adduser.rsrc\" file).  Just fill in the blanks.  This information"
echo "is used by the adduser program whenever a new account is created.  Press"
echo "your cancel key at any time to cancel."
echo -n "^MMaximum minutes per month (1200): "
read a; if "$a" = "" then set a=1200
echo -n "Inactive days before removal (60): "
read b; if "$b" = "" then set b=60
echo -n "Cents charged per minute (0): "
read c; if "$c" = "" then set c=0
echo -n "Maximum accounts allowed (300): "
read d; if "$d" = "" then set d=300
echo -n "^MOkay to save these settings? (Y/N) "
read e
if "$e" = "Y" or "$e" = "y" then
    echo "$a^M$b^M$c^M$d" >$/etc/rsrc/adduser.rsrc
    echo "Saved."
else
    echo "Cancelled."
endif
unset a b c d e
