# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/shutdown.sh,v 1.10 2004/04/21 17:09:18 vapier Exp $

# kuro: tell ppc_uartd that we are going to halt
if [ -c "/dev/ttyS1" ] ; then 
	echo -n "EEEE" > /dev/ttyS1
else
	ewarn "No /dev/ttyS1 device found, your Kurobox may not halt correctly!"
fi

/sbin/halt -idp
