summaryrefslogtreecommitdiff
path: root/distrib/miniroot/dot.profile
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2002-08-29 01:53:38 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2002-08-29 01:53:38 +0000
commitff62bd41289b22416099ce070194346803e21f54 (patch)
tree7f68a1292b91490024dc7bfab469851f1ef65be8 /distrib/miniroot/dot.profile
parent3654abde9eb6af39377967187bee6b00e7fe9cfb (diff)
Add a new verb to list2sh.awk, 'REMOVE'. This allows the easy
disabling of '(U)pgrade' in architectures by adding REMOVE upgrade to the end of the 'list' file for that architecture. Add code to dot.profile to check for the presence of the upgrade script before offering to (U)pgrade. Use the new verb to disable upgrades for sparc. ok deraadt@.
Diffstat (limited to 'distrib/miniroot/dot.profile')
-rw-r--r--distrib/miniroot/dot.profile6
1 files changed, 4 insertions, 2 deletions
diff --git a/distrib/miniroot/dot.profile b/distrib/miniroot/dot.profile
index 4c104838de2..96eda49291c 100644
--- a/distrib/miniroot/dot.profile
+++ b/distrib/miniroot/dot.profile
@@ -1,4 +1,4 @@
-# $OpenBSD: dot.profile,v 1.2 2002/06/09 05:53:54 todd Exp $
+# $OpenBSD: dot.profile,v 1.3 2002/08/29 01:53:37 krw Exp $
# $NetBSD: dot.profile,v 1.1 1995/12/18 22:54:43 pk Exp $
#
# Copyright (c) 1995 Jason R. Thorpe
@@ -55,7 +55,9 @@ if [ "X${DONEPROFILE}" = "X" ]; then
# Installing or upgrading?
_forceloop=""
while [ "X$_forceloop" = X"" ]; do
- echo -n '(I)nstall, (U)pgrade or (S)hell? '
+ echo -n '(I)nstall'
+ [ -f upgrade ] && echo -n ', (U)pgrade'
+ echo -n ' or (S)hell? '
read _forceloop
case "$_forceloop" in
i*|I*) /install