#! /sbin/sh
#
# Announce - Display startup and shutdown anouncements
#
# On some machines, the message is displayed in an alert
# window.
#
# $Revision: 1.10 $

if chkconfig verbose 
then
    LOGGER='/sbin/lfmt -s info'
else
    LOGGER='/sbin/lfmt -s info -G 1'
fi

NOMSGSEVERITY=1 export NOMSGSEVERITY

case $1 in
	'start')
	    $LOGGER "The system is coming up.\n"
	;;
	'stop')
	    $LOGGER "The system is shutting down.\nPlease wait.\n"
	;;
	'restart')
	    $LOGGER "The system is being restarted.\n"
	;;
esac
