Add a new "swapfile" variable so that you can add a file as a additional
swap as the system is coming up.
This commit is contained in:
parent
e2fbcabdcb
commit
d37f8acb71
8
etc/rc
8
etc/rc
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $Id: rc,v 1.95 1996/07/18 19:09:06 pst Exp $
|
||||
# $Id: rc,v 1.96 1996/07/30 06:28:59 jkh Exp $
|
||||
# From: @(#)rc 5.27 (Berkeley) 6/5/91
|
||||
|
||||
# System startup script run by init on autoboot
|
||||
@ -91,6 +91,12 @@ if [ -f /etc/sysconfig ]; then
|
||||
. /etc/sysconfig
|
||||
fi
|
||||
|
||||
# Add additional swapfile, if configured.
|
||||
if [ "x$swapfile" != "xNO" -a -w $swapfile -a -f /dev/vn0b ]; then
|
||||
echo "Adding $swapfile as additional swap."
|
||||
/usr/sbin/vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b
|
||||
fi
|
||||
|
||||
# configure serial devices
|
||||
if [ -f /etc/rc.serial ]; then
|
||||
. /etc/rc.serial
|
||||
|
@ -4,7 +4,7 @@
|
||||
# This is sysconfig - a file full of useful variables that you can set
|
||||
# to change the default startup behavior of your system.
|
||||
#
|
||||
# $Id: sysconfig,v 1.46 1996/05/13 02:21:16 jkh Exp $
|
||||
# $Id: sysconfig,v 1.47 1996/06/23 20:54:26 ache Exp $
|
||||
|
||||
######################### Start Of Local Configuration Section ###########
|
||||
|
||||
@ -209,6 +209,10 @@ dumpdev=NO
|
||||
# Set to YES if you want kernel crashdumps to be saved for debugging
|
||||
savecore=NO
|
||||
|
||||
# Set to an additional swapfile you'd like to have added to preallocated swap
|
||||
# space during system boot (or NO for none).
|
||||
swapfile=NO
|
||||
|
||||
# Set to YES if you want to run Kerberos authentication
|
||||
kerberos_server=NO
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user