#!/sbin/sh
#
# @(#) $Revision: 72.12 $
#
# NOTE:    This script is not configurable!  Any changes made to this
#          scipt will be overwritten when you upgrade to the next
#          release of HP-UX.
#
# WARNING: Changing this script in any way may lead to a system that
#          is unbootable.  Do not modify this script.
#

#
# Preserve editor files
#

PATH=/sbin:/usr/sbin:/usr/bin
export PATH

rval=0
set_return() {
	x=$?
	if [ $x -ne 0 ]; then
		echo "ERROR CODE $x"
		rval=1
	fi
}

case $1 in
start_msg)
	echo "Recover editor crash files"
	;;

'start')
        if [ -x /usr/bin/ex ]; then
		echo "preserving editor files (if any)"
		( cd /var/tmp; /usr/lbin/expreserve -a )
		set_return
	fi
	;;

*)
	echo "usage: $0 {start}"
	;;
esac

exit $rval
