diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-13 01:04:27 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-13 01:04:27 +0000 |
commit | 617401356ce2eb6dad2132d597e82c91dcf58878 (patch) | |
tree | 93b3a8ccb72205e4489e0771f99689e6806262be /distrib/alpha | |
parent | a1abc34dc02ccab24f87f7dc16062eaee1ef2aa9 (diff) |
prompt for install/upgrade like i386
Diffstat (limited to 'distrib/alpha')
-rw-r--r-- | distrib/alpha/ramdisk/dot.profile | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/distrib/alpha/ramdisk/dot.profile b/distrib/alpha/ramdisk/dot.profile index 94d2d98b947..41603c0c07c 100644 --- a/distrib/alpha/ramdisk/dot.profile +++ b/distrib/alpha/ramdisk/dot.profile @@ -1,5 +1,5 @@ # -# $OpenBSD: dot.profile,v 1.7 1997/10/25 05:40:55 deraadt Exp $ +# $OpenBSD: dot.profile,v 1.8 1998/04/13 01:04:26 millert Exp $ # # Copyright (c) 1994 Christopher G. Demetriou # All rights reserved. @@ -93,6 +93,23 @@ if [ "X${DONEPROFILE}" = "X" ]; then . /.commonutils . /.instutils - # run the installation script. - install + # Installing or upgrading? + _forceloop="" + while [ "X$_forceloop" = X"" ]; do + echo -n '(I)nstall or (U)pgrade? ' + read _forceloop + case "$_forceloop" in + i*|I*) + /install + ;; + + u*|U*) + /upgrade + ;; + + *) + _forceloop="" + ;; + esac + done fi |