Re: Minor request for enhancement: "beep on halt"

Alberto Schiavon (al@informex.it)
Wed, 09 Dec 1998 20:53:32 +0000


Stephen Harris wrote:
>
> Sorry if this has been discussed, but there's so much in this list that I
> may have missed it..
>
> Nowadays a lot of Linux systems are used "headless" for single task jobs
> (eg mail relay, print server) where no console or backup is really required.
> Occaisionally they need to be powered down, but without a console it's really
> hard to tell when the kernel has halt'd. So how about the busy while(1);
> loop on halt having the ability to beep once a second (or whatever) so that
> the admin knows when the kernel has finally halted...

not a big issue, anyway nothing related with kernel development.

here is the relevant part of my /etc/rc.d/init.d/halt (RH):

----------------

echo "Remounting remaining filesystems (if any) readonly"
mount | awk '/ext2/ { print $3 }' | while read line; do
mount -n -o ro,remount $line
done
echo "^G"
sleep 1
echo "^G"
sleep 1
echo "^G"
# Now halt or reboot.
echo "$message"
[ -f /fastboot ] && echo "On the next boot fsck will be skipped."
eval $command -d

----------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/