#!/sbin/sh
#
# @(#) $Revision: 72.10 $
#
# 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.
#

#
# Turn on swapping on alternate swap devices.
# /etc/fstab "swap" entries configured in the kernel are used.
#

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

rval=0

case $1 in
start_msg)
	echo "Enable auxiliary swap space"
	;;

'start')
	/usr/sbin/swapon -a -t local 
	x=$?
	if [ $x -eq 0 ]
	then
		echo 'swap device(s) active'
	elif [ $x -eq 1 ]
	then
		echo "EXIT CODE : $x - WARNING: swap partition already active"
	else
		echo "EXIT CODE: $x"
		rval=1
	fi

	;;

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

exit $rval
