summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--distrib/hp300/ramdisk/dot.profile34
1 files changed, 27 insertions, 7 deletions
diff --git a/distrib/hp300/ramdisk/dot.profile b/distrib/hp300/ramdisk/dot.profile
index b1aeedb68a6..9b2c1a6aff1 100644
--- a/distrib/hp300/ramdisk/dot.profile
+++ b/distrib/hp300/ramdisk/dot.profile
@@ -1,5 +1,5 @@
#
-# $OpenBSD: dot.profile,v 1.6 1998/03/28 23:43:52 millert Exp $
+# $OpenBSD: dot.profile,v 1.7 1998/04/14 17:29:45 millert Exp $
# $NetBSD: dot.profile,v 1.1 1995/07/18 04:13:09 briggs Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
@@ -56,11 +56,31 @@ if [ "X${DONEPROFILE}" = "X" ]; then
# tell install.md we've done it
> ${TMPWRITEABLE}
-fi
-# pull in the function definitions that people will use from the shell prompt.
-. /.commonutils
-. /.instutils
+ # pull in the functions that people will use from the shell prompt.
+ . /.commonutils
+ . /.instutils
+
+ # Installing or upgrading?
+ _forceloop=""
+ while [ "X$_forceloop" = X"" ]; do
+ echo -n '(I)nstall, (U)pgrade, or (S)hell? '
+ read _forceloop
+ case "$_forceloop" in
+ i*|I*)
+ /install
+ ;;
+
+ u*|U*)
+ /upgrade
+ ;;
-# run the installation script.
-install
+ s*|S*)
+ ;;
+
+ *)
+ _forceloop=""
+ ;;
+ esac
+ done
+fi