Source-Changes-HG archive

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

[src/netbsd-1-5]: src/distrib/miniroot Pullup 1.20 [pk]:



details:   https://anonhg.NetBSD.org/src/rev/32d5770c3a95
branches:  netbsd-1-5
changeset: 490274:32d5770c3a95
user:      tv <tv%NetBSD.org@localhost>
date:      Tue Nov 28 18:38:28 2000 +0000

description:
Pullup 1.20 [pk]:
Allow for an optional MD upgrade preparation routine.
[releng: does not affect any already built miniroots; dependent on new MD
 supplied option]

diffstat:

 distrib/miniroot/upgrade.sh |  27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diffs (49 lines):

diff -r 06790eca72b0 -r 32d5770c3a95 distrib/miniroot/upgrade.sh
--- a/distrib/miniroot/upgrade.sh       Sun Nov 19 20:21:50 2000 +0000
+++ b/distrib/miniroot/upgrade.sh       Tue Nov 28 18:38:28 2000 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: upgrade.sh,v 1.19 1999/11/02 06:11:25 sjg Exp $
+#      $NetBSD: upgrade.sh,v 1.19.6.1 2000/11/28 18:38:28 tv Exp $
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -58,6 +58,11 @@
 #      md_welcome_banner()     - display friendly message
 #      md_not_going_to_install() - display friendly message
 #      md_congrats()           - display friendly message
+#      md_set_term             - set terminal type
+#      md_makerootwritable     - what it says
+# optional:
+#      md_upgrade_prep_needed  - variable: set if you md_prepare_upgrade()
+#      md_prepare_upgrade      - any machine dependent preparations
 
 # we need to make sure .'s below work if this directory is not in $PATH
 # dirname may not be available but expr is
@@ -282,6 +287,26 @@
 # Mount filesystems.
 mount_fs /tmp/fstab.shadow
 
+# Machine dependent preparation.
+test "$md_upgrade_prep_needed" && {
+       md_prepare_upgrade || {
+               cat << 'EOF'
+The preparations for upgrading your machine did not complete successfully.
+
+EOF
+               echo -n "Continue anyway? [n]"
+               getresp "n"
+               case "$resp" in
+                       y*|Y*)
+                               ;;
+                       *)
+                               exit 1
+                               ;;
+               esac
+       }
+}
+
+
 echo -n        "Are the upgrade sets on one of your normally mounted (local) filesystems? [y] "
 getresp "y"
 case "$resp" in



Home | Main Index | Thread Index | Old Index