diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-14 17:29:46 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-14 17:29:46 +0000 |
commit | f2723e7c92fcd2ff26359e6580ccd73987c592c2 (patch) | |
tree | aba17b3293d3a2ab013cef7d05575ef4fdbac6fd /distrib/hp300/ramdisk/dot.profile | |
parent | f77cf5ff943cd57b50bcaf35f884d15be8ce9534 (diff) |
Add install/upgrade/shell prompt
Diffstat (limited to 'distrib/hp300/ramdisk/dot.profile')
-rw-r--r-- | distrib/hp300/ramdisk/dot.profile | 34 |
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 |