#!/bin/sh
#RC:RUNINRC
#RC:AFTER remotefs
# This is OK for anything but 4MB machines.  However, it make sure
# savecore's messages are logged.  For a 4MB machine, you'll probably
# want a 'RC:BEFORE daemons' instead
#RC:AFTER syslog
#RC:BEFORE network2

# enable dumpdev so that savecore can see it
# /var/crash should be a directory or a symbolic link
# to the crash directory if core dumps are to be saved.
if [ "X${dumpdev}" != X"NO" -a -e ${dumpdev} -a -d /var/crash ]; then
	dumpon ${dumpdev}
	echo -n checking for core dump...
	savecore /var/crash
fi
