diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-08-21 23:15:37 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-08-21 23:15:37 +0000 |
| commit | d37f8acb718e36f5e24144bb46ac2ededa7760aa (patch) | |
| tree | fffee7bb987a3a6ba6670ca9f9550d6132c45bbb | |
| parent | e2fbcabdcb93511dc90184738282bf96fc232622 (diff) | |
Notes
| -rw-r--r-- | etc/rc | 8 | ||||
| -rw-r--r-- | etc/sysconfig | 6 |
2 files changed, 12 insertions, 2 deletions
@@ -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 diff --git a/etc/sysconfig b/etc/sysconfig index 5da75aae5119..cdea2c3d6662 100644 --- a/etc/sysconfig +++ b/etc/sysconfig @@ -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 |
