PATH=/bin:/usr/bin
if test `who | wc -l` -gt 1; then
	echo 'The following users are still logged in:
'
	who
	echo '
Try again later.'
else
	echo 'Wait for the message on the system console
saying it is all right to halt the system.'
	sync
	sync
	if kill -3 1 2>/dev/null
	then
		sleep 5
	else
	  echo 'shutdown: you must be super user to shut down the system.
'
	fi
fi
