:
#
# aodconfig (Online Diagnostics)
#

# check for superuser id

if [ `logname` != "root" ]
then
	echo "Must be super-user to execute online diagnostics installation"
	exit 2
fi

# loop until exit is chosen
until [ "" ]
do
	# display choices menu & get user selection
	clear
	echo
	echo "                      Online Diagnostics Installation Routine"
        echo "                      ---------------------------------------"
	echo
	echo "	Select an Action to be performed:"
	echo
	echo "		1) Initialize \"uucp\" files for Remote System notification\n"
	echo "		2) Initialize and/or Modify Threshold Detection Settings\n"
	echo "		3) Initialize and/or Modify Online Monitor Cron Settings"
	echo; echo "	Or enter 'q' to quit"
	echo; echo "		Your Choice: \c"
	read SELECTION
	case $SELECTION in
		"1")
			/usr/lib/aoduuset
			;;
		"2")
			/usr/lib/setthresh
			;;
		"3")
			/usr/lib/aodcron
			;;
		"q"|"Q")
			break
			;;
	esac
done

echo
exit 0
