summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-04-14 17:29:45 +0000
committermillert <millert@openbsd.org>1998-04-14 17:29:45 +0000
commitd7804a54a8467822ed76c91c087daeaad700a1e4 (patch)
treefe549cfe0bc75a62de1ce5bacd8905ad273af0e3
parent1) If the user selects a set multiple times in a session only (diff)
downloadwireguard-openbsd-d7804a54a8467822ed76c91c087daeaad700a1e4.tar.xz
wireguard-openbsd-d7804a54a8467822ed76c91c087daeaad700a1e4.zip
Add install/upgrade/shell prompt
-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