diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-06-04 06:23:54 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-06-04 06:23:54 +0000 |
commit | 4ee0bd714b1f9562746e27f76a4bdafc5b7546dc (patch) | |
tree | 955299445e7bff861e2f16678eedba2ba5e71322 /distrib | |
parent | 773d991fb0d90b5b8d25d378d7043919becab01e (diff) |
Only print the intro verbiage once, instead of every pass through the "(I)nstall, ..."
loop.
Noticed by & ok deraadt@
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/miniroot/dot.profile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/distrib/miniroot/dot.profile b/distrib/miniroot/dot.profile index f2f85485a40..a5584925239 100644 --- a/distrib/miniroot/dot.profile +++ b/distrib/miniroot/dot.profile @@ -1,4 +1,4 @@ -# $OpenBSD: dot.profile,v 1.9 2009/06/03 23:44:53 krw Exp $ +# $OpenBSD: dot.profile,v 1.10 2009/06/04 06:23:53 krw Exp $ # $NetBSD: dot.profile,v 1.1 1995/12/18 22:54:43 pk Exp $ # # Copyright (c) 2009 Kenneth R. Westerback @@ -54,8 +54,7 @@ echo 'erase ^?, werase ^W, kill ^U, intr ^C, status ^T' stty newcrt werase ^W intr ^C kill ^U erase ^? status ^T # Installing or upgrading? -while :; do - cat <<__EOT +cat <<__EOT Welcome to the $OBSD installation program. @@ -69,13 +68,13 @@ Control-C, but exiting during an $MODE can leave your system in an inconsistent state. __EOT +while :; do read REPLY?'(I)nstall, (U)pgrade or (S)hell? ' case $REPLY in i*|I*) echo "\nCool! Let's get to it." /install && break ;; - u*|U*) - cat <<__EOT + u*|U*) cat <<__EOT NOTE: Once your system has been upgraded, you must manually merge any changes to files in the 'etc' set into the files already on your system. |