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 1.6->1.7 (minoura ...



details:   https://anonhg.NetBSD.org/src/rev/0aac7226494d
branches:  netbsd-1-4
changeset: 468385:0aac7226494d
user:      perry <perry%NetBSD.org@localhost>
date:      Tue Apr 20 14:22:52 1999 +0000

description:
pullup 1.6->1.7 (minoura makoto)

diffstat:

 distrib/x68k/floppies/ramdisk/upgrade.tmpl |  60 +++++++++++++++++------------
 1 files changed, 35 insertions(+), 25 deletions(-)

diffs (106 lines):

diff -r 195b1b61c1fd -r 0aac7226494d distrib/x68k/floppies/ramdisk/upgrade.tmpl
--- a/distrib/x68k/floppies/ramdisk/upgrade.tmpl        Tue Apr 20 02:37:50 1999 +0000
+++ b/distrib/x68k/floppies/ramdisk/upgrade.tmpl        Tue Apr 20 14:22:52 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $NetBSD: upgrade.tmpl,v 1.4.2.2 1999/04/15 16:36:16 minoura Exp $
+#      $NetBSD: upgrade.tmpl,v 1.4.2.3 1999/04/20 14:22:52 perry Exp $
 #
 # Copyright (c) 1994 Christopher G. Demetriou
 # Copyright (c) 1997 Perry E. Metzger
@@ -41,7 +41,7 @@
 DT=/etc/disktab                                # /etc/disktab
 FSTABDIR=/mnt/etc                      # /mnt/etc
 #DONTDOIT=echo
-UARGS="-c 2"
+UARGS="-T ffs:-c=2"
 
 FSTAB=${FSTABDIR}/fstab
 
@@ -144,37 +144,38 @@
                ;;
 esac
 
+echo   ""
+echo   "You may have to increase the virtual memory by activating"
+echo   "the swap device if your machine has only 4MB memory installed, or,"
+echo   "if one or more of your NetBSD disk partitions are very large."
+echo   ""
 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."
+    defresp=y
+else
+    defresp=n
+fi
+
+echo -n        "Add ${drivename}b as swap device? [${defresp}]"
+
+getresp $defresp
+case $resp in
+    n*)
        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    "Swapping is not enabled."
+       ;;
+    *)
        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
+       echo    "Good.  Configuring the swap device..."
+       swapctl -a /dev/${drivename}b
+       ;;
+esac
 
 if [ $upgradefs = YES ]; then
        echo    ""
        echo    "your file systems will be upgraded while they are checked"
 fi
 
+echo   "Do not be alarmed by the message \"fsck: Cannot open \`/etc/fstab'\"."
 echo   "checking the file system on ${drivename}a..."
        
 fsck -f -p $upgrargs /dev/r${drivename}a
@@ -212,7 +213,8 @@
 
 echo   ""
 echo    "Re-mounting root partition read-only..."
-umount /mnt && mount -r /dev/${drivename}a /mnt
+sync
+mount -u -r /dev/${drivename}a /mnt
 if [ $? != 0 ]; then
        echo    "FATAL ERROR: RE-MOUNT FAILED."
        echo    "It in unclear why this error would occur.  It looks"
@@ -277,6 +279,14 @@
 echo   "the installation notes to determine how to load and install the new"
 echo   "NetBSD distribution sets, and how to clean up after the upgrade"
 echo   "software, when you are done."
+
+if [ `cat /kern/physmem` -le 1024 ]; then # less than 4megs
+    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   "GOOD LUCK!"
 echo   ""



Home | Main Index | Thread Index | Old Index