diff options
author | 1998-04-13 01:04:26 +0000 | |
---|---|---|
committer | 1998-04-13 01:04:26 +0000 | |
commit | 134df315632814988f651c10ca99e52206d19d10 (patch) | |
tree | 33e79219e055471d39b6a07423d64d75a6627450 | |
parent | To change output, we use -o. Noted by David Leonard <leonard@csee.uq.edu.au> (diff) | |
download | wireguard-openbsd-134df315632814988f651c10ca99e52206d19d10.tar.xz wireguard-openbsd-134df315632814988f651c10ca99e52206d19d10.zip |
prompt for install/upgrade like i386
-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 |