#!/bin/sh
#
# (C) Copyright 1993, 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
#

. /etc/init.d/LIB
ctrlaltdel=`pathof ctrlaltdel /sbin:/etc:/bin:/usr/sbin:/usr/etc:/usr/bin`

# If we have ctrlaltdel out there (from poe's admutils) we'll try and
# use it to tell the kernel to signal init rather than rebooting
# directly. This should be handled by any up to date init.
if [ -n "$ctrlaltdel" ]; then
	if $ctrlaltdel soft; then
		echo "Ctrl-Alt-Del will signal init"
	else
		echo "WARNING: ctrlaltdel failed? Ctrl-Alt-Del will *NOT* sync before rebooting"
	fi
else
	echo "WARNING: ctrlaltdel not found."
	echo "WARNING: Ctrl-Alt-Del will *NOT* sync before rebooting."
fi
