diff options
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/miniroot/install.sub | 16 |
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 |