summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-04-18 01:07:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-04-18 01:07:49 +0000
commit323b95fb7035d450552ebaa22d3864af4ad940c2 (patch)
tree4212110b5044317cd46b752472d612b8f46ab50d
parent7ed39351f4db95fae079e95cf00c1a29bde1b72e (diff)
Get rid of the final "Are you ready to install sets?" question by adding
an 'abort' option to the previous question. Another question goes *poof* ok krw
-rw-r--r--distrib/miniroot/install.sub7
1 files changed, 4 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 494ccf97464..32774b0bd21 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.460 2009/04/18 00:42:28 deraadt Exp $
+# $OpenBSD: install.sub,v 1.461 2009/04/18 01:07:48 deraadt Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2007 Todd Miller, Theo de Raadt, Ken Westerback
@@ -525,8 +525,10 @@ __EOT
fi
: ${_next:=done}
- ask "Set name? (or 'done')" "$_next"
+ ask "Set name? (or 'abort' or 'done')" "$_next"
case $resp in
+ abort) _selected=
+ break ;;
done) break ;;
-*) _action=rmel ;;
esac
@@ -954,7 +956,6 @@ __EOT
shacmd="cat"
[[ -x /bin/sha256 ]] && shacmd="sha256 /tmp/h"
- ask_yn "Ready to $MODE sets?" yes
for _f in $THESETS ; do
isin $_f $_get_sets || continue
echo -n "Getting $_f ..."