#!/bin/sh
#ident	"$Header: addswap 1.4 90/04/25 $"
#
# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
# Sequent Computer Systems, Inc.   All rights reserved.
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.

set `who -r`
if [ $9 != "S" ]
then
	exit 0
fi

# addswap:
# This file contains the commands used to add multiple swap devices
# at boot time.  This should be executed AFTER savecore is run.  Once
# added, a swap device can only be removed by rebooting the system.
#
# Lines are of the form:
#
# swap -a <block_device> <size>
#
# where:
#	<block_device>	is the BLOCK special file name associated
#			with the disk partition
#	<size>		is the number of 512 byte blocks that should be
#			allocated for swap on <block_device>.  If zero (0)
#			is specified, the entire partition is used.
#
# For example, to add the entire zd1s1 partition:
# swap -a /dev/dsk/zd1s1 0
#
