:
#
# aodsetdef (Online Diagnostics) 
#


# check for superuser id

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

################################################################################

# preset simple defaults (we want to do this even though they may be
# overwritten later when read from the thresholds settings file because
# there may be omissions in the settings file caused by editing; the
# above defaults are the minimal subset we wish to allow).

for device in hd fd tp mdc sio krn mis
do
	eval fieldlist=$"$device""fields"
	for fieldtype in $fieldlist
	do
		eval fieldname=$""$device"val"$fieldtype""
		eval "$device""$fieldname"=20
		eval "$device""$fieldname"ACT=N
	done
done

