summaryrefslogtreecommitdiff
path: root/distrib/miniroot
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-06-12 03:30:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-06-12 03:30:01 +0000
commit422e88b5c0051c6b8013aa5d7cd46bcc40e9c261 (patch)
tree9cd84ce760b8d0ea3ba8849ea3cb03f0282003bd /distrib/miniroot
parent0ab2f30eef557c5f63a64794fb3c4f6c62cae595 (diff)
Put back the once-only code that krw removed earlier, because we want ^C
from the install script to go to the # prompt, not back to the question.
Diffstat (limited to 'distrib/miniroot')
-rw-r--r--distrib/miniroot/dot.profile54
1 files changed, 29 insertions, 25 deletions
diff --git a/distrib/miniroot/dot.profile b/distrib/miniroot/dot.profile
index ad8026cc4e4..0442e5cb240 100644
--- a/distrib/miniroot/dot.profile
+++ b/distrib/miniroot/dot.profile
@@ -1,4 +1,4 @@
-# $OpenBSD: dot.profile,v 1.12 2009/06/07 03:52:29 krw Exp $
+# $OpenBSD: dot.profile,v 1.13 2009/06/12 03:30:00 deraadt Exp $
# $NetBSD: dot.profile,v 1.1 1995/12/18 22:54:43 pk Exp $
#
# Copyright (c) 2009 Kenneth R. Westerback
@@ -47,38 +47,42 @@ set -o emacs
set -- $(dmesg | sed -n '/^root on /h;${g;p;}')
rootdisk=$3
-mount -u /dev/${rootdisk:-rd0a} /
+if [ "X${DONEPROFILE}" = "X" ]; then
+ DONEPROFILE=YES
-# set up some sane defaults
-echo 'erase ^?, werase ^W, kill ^U, intr ^C, status ^T'
-stty newcrt werase ^W intr ^C kill ^U erase ^? status ^T
+ mount -u /dev/${rootdisk:-rd0a} /
-# Installing or upgrading?
-cat <<__EOT
+ # set up some sane defaults
+ echo 'erase ^?, werase ^W, kill ^U, intr ^C, status ^T'
+ stty newcrt werase ^W intr ^C kill ^U erase ^? status ^T
+
+ # Installing or upgrading?
+ cat <<__EOT
Welcome to the $OBSD installation program.
__EOT
-while :; do
- read REPLY?'(I)nstall, (U)pgrade or (S)hell? '
- case $REPLY in
- i*|I*) echo "\nCool! Let's get to it.\n"
- /install && break
- ;;
- u*|U*) cat <<__EOT
+ while :; do
+ read REPLY?'(I)nstall, (U)pgrade or (S)hell? '
+ case $REPLY in
+ i*|I*) echo "\nCool! Let's get to it.\n"
+ /install && break
+ ;;
+ 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.
sysmerge(8) can help.
__EOT
- /upgrade && break
- ;;
- s*|S*) break
- ;;
- !) echo "Type 'exit' to return to install."
- ksh
- ;;
- !*) eval "${REPLY#?}"
- ;;
- esac
-done
+ /upgrade && break
+ ;;
+ s*|S*) break
+ ;;
+ !) echo "Type 'exit' to return to install."
+ ksh
+ ;;
+ !*) eval "${REPLY#?}"
+ ;;
+ esac
+ done
+fi