swapon only if physmem <= 4MB.

Other message cosmetics.
This commit is contained in:
minoura 1999-04-15 15:20:21 +00:00
parent 011b07d1a9
commit cb06a1c589
1 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: install.tmpl,v 1.7 1999/04/02 15:46:34 minoura Exp $
# $NetBSD: install.tmpl,v 1.8 1999/04/15 15:20:21 minoura Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
# Copyright (c) 1997 Perry E. Metzger
@ -396,18 +396,18 @@ echo -n "Labeling disk $drivename..."
$DONTDOIT disklabel -w $drivename $labelname
echo " done."
if [ `cat /kern/physmem` -lt 1536 ]; then # less than 6megs
if [ `cat /kern/physmem` -le 1024 ]; then # less than 4megs
echo ""
echo "You have to increase the virtual memory by activating"
echo "the swap device you have just configured"
echo "especially if you are going to retrieve the distribution sets"
echo "via network."
echo "the swap device you have just configured especially if"
echo "you are going to retrieve the distribution sets via network."
echo ""
echo -n "Enable swapping? (yes/no)"
getresp "y"
case $resp in
n*)
echo ""
echo "OK, swapping is not enabled."
echo "Good, swapping is not enabled."
;;
*)
echo ""
@ -419,6 +419,7 @@ if [ `cat /kern/physmem` -lt 1536 ]; then # less than 6megs
echo "Note that you have to use the SMALL kernel named"
echo "netbsd.SMALL in x68k/binary/kernel/ directory instead of"
echo "the standard kernel which is included the kern.tgz."
echo ""
fi
if [ "$sect_fwd" = "sf:" ]; then