Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/distrib/x68k/floppies/ramdisk Pullup rev.1.6.



details:   https://anonhg.NetBSD.org/src/rev/71e9cd69449f
branches:  netbsd-1-4
changeset: 468244:71e9cd69449f
user:      minoura <minoura%NetBSD.org@localhost>
date:      Thu Apr 15 16:36:16 1999 +0000

description:
Pullup rev.1.6.

diffstat:

 distrib/x68k/floppies/ramdisk/upgrade.tmpl |  53 +++++++++++++++--------------
 1 files changed, 27 insertions(+), 26 deletions(-)

diffs (76 lines):

diff -r 6cca1821b035 -r 71e9cd69449f distrib/x68k/floppies/ramdisk/upgrade.tmpl
--- a/distrib/x68k/floppies/ramdisk/upgrade.tmpl        Thu Apr 15 16:34:50 1999 +0000
+++ b/distrib/x68k/floppies/ramdisk/upgrade.tmpl        Thu Apr 15 16:36:16 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $NetBSD: upgrade.tmpl,v 1.4.2.1 1999/04/02 23:56:29 minoura Exp $
+#      $NetBSD: upgrade.tmpl,v 1.4.2.2 1999/04/15 16:36:16 minoura Exp $
 #
 # Copyright (c) 1994 Christopher G. Demetriou
 # Copyright (c) 1997 Perry E. Metzger
@@ -144,6 +144,32 @@
                ;;
 esac
 
+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 especially if you are going to retrieve"
+       echo    "the distribution sets via network."
+       echo    ""
+       echo -n "Enable swapping? (yes/no)"
+       getresp "y"
+       case $resp in
+               n*)
+                       echo    ""
+                       echo    "Good, swapping is not enabled."
+                       ;;
+               *)
+                       echo    ""
+                       echo    "Here we go..."
+                       swapctl -a /dev/${drivename}b
+                       ;;
+       esac
+       echo    ""
+       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 [ $upgradefs = YES ]; then
        echo    ""
        echo    "your file systems will be upgraded while they are checked"
@@ -242,31 +268,6 @@
 chroot /mnt mount -at ffs > /dev/null 2>&1
 echo   "Done."
 
-if [ `cat /kern/physmem` -lt 1536 ]; then # less than 6megs
-       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 -n "Enable swapping? (yes/no)"
-       getresp "y"
-       case $resp in
-               n*)
-                       echo    ""
-                       echo    "OK, swapping is not enabled."
-                       ;;
-               *)
-                       echo    ""
-                       echo    "Here we go..."
-                       swapctl -a /dev/${drivename}b
-                       ;;
-       esac
-       echo    ""
-       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."
-fi
-
 echo    ""
 echo    ""
 echo   "OK!  The preliminary work of setting up your disk is now complete,"



Home | Main Index | Thread Index | Old Index