summaryrefslogtreecommitdiff
path: root/distrib/alpha
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-04-13 01:04:27 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-04-13 01:04:27 +0000
commit617401356ce2eb6dad2132d597e82c91dcf58878 (patch)
tree93b3a8ccb72205e4489e0771f99689e6806262be /distrib/alpha
parenta1abc34dc02ccab24f87f7dc16062eaee1ef2aa9 (diff)
prompt for install/upgrade like i386
Diffstat (limited to 'distrib/alpha')
-rw-r--r--distrib/alpha/ramdisk/dot.profile23
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