From ff62bd41289b22416099ce070194346803e21f54 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 29 Aug 2002 01:53:38 +0000 Subject: 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@. --- distrib/miniroot/dot.profile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'distrib/miniroot/dot.profile') 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 -- cgit v1.2.3