summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2010-06-30 20:22:02 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2010-06-30 20:22:02 +0000
commit7aca8a33a30ce915822f53d039e3fed8ad3f13f9 (patch)
treec785c50527f2e60615dac66f5ba42b0842f66ae5 /distrib/miniroot/install.sub
parent257eead1eaf79cdd4c0b3d2f51fd19755aa9018d (diff)
revert last ^D behaviour change
requested and well explained by krw@
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r--distrib/miniroot/install.sub10
1 files changed, 4 insertions, 6 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index dbf00ee7d50..49e25d8ed7a 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.608 2010/06/30 19:31:19 halex Exp $
+# $OpenBSD: install.sub,v 1.609 2010/06/30 20:22:01 halex Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -175,7 +175,7 @@ mount_mnt2() {
askpass() {
set -o noglob
stty -echo
- read -r resp?"$1 " || exit 1
+ read -r resp?"$1 "
stty echo
set +o noglob
echo
@@ -227,18 +227,16 @@ retrap
# and the function will return a non-zero value. Normally, the caller
# will then reprint any prompt and call the function again.
_ask() {
- local _int _redo=0 _pid _fail
+ local _int _redo=0 _pid
trap "_int=1" INT
trap "_redo=1" TERM
lock; dmesg >/tmp/update; unlock
- read resp || _fail=1
+ read resp
lock; rm /tmp/update; unlock
if (( _redo )); then
stty raw
stty -raw
- elif [[ -n $_fail ]]; then
- exit 1
else
case $resp in
!) echo "Type 'exit' to return to install."