unset result result=`uptime | grep days | awk '{print $3}'` if [ ! -z "${result}" ] ; then if [ ${result} -gt 8000 ] ; then echo "System is up over 8000 days; this is a sign of a corrupt /etc/utmp file." RC=1 fi fi
if [ ${RC} -eq 0 ] ; then result=`who -r` if [ -z "${result}" ] ; then echo "Unable to determine run-level with the who -r command." echo "This is a sign of a corrupt /etc/utmp file." RC=1 fi fi