summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2018-07-07 09:25:01 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2018-07-07 09:25:01 +0000
commit9bc5a46a7901cbfbde1b4ba31ae3f92e4593f4b4 (patch)
tree2e85dea468a1a3b26d74a96d5f15aaa9960a005a /distrib
parent0f13724e6a584f43430b4459cdebf41d9b6e0904 (diff)
Tweak comments
Diffstat (limited to 'distrib')
-rw-r--r--distrib/miniroot/install.sub16
1 files changed, 6 insertions, 10 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 1e3b3306c42..ad1efc969ae 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.1080 2018/07/06 21:07:46 rpe Exp $
+# $OpenBSD: install.sub,v 1.1081 2018/07/07 09:25:00 rpe Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -696,16 +696,12 @@ _autorespond() {
err_exit "\nQuestion has no answer in response file."
}
-# Issue a read into the global variable $resp. If the dmesg output is
-# changed while inside this function, the current read will be aborted
-# and the function will return a non-zero value. Normally, the caller
-# will then reprint any prompt and call the function again.
-#
-# Optional parameters:
-#
-# $1 = the question to ask the user
-# $2 = the default answer
+# Issue a read into the global variable $resp.
+# Optionally present a question $1 and a default answer $2 shown in [].
#
+# If the dmesg output is changed while inside this function, the current read
+# will be aborted and the function will return a non-zero value. Normally, the
+# caller function will then reprint any prompt and call the function again.
_ask() {
local _q=$1 _def=$2 _int _redo=0 _pid