rc: increase both keypress timeouts slightly

This commit is contained in:
Franco Fichtner 2018-05-19 09:44:19 +02:00
parent 4ac26c6286
commit 242912aa6d
2 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
function timeout($timer = 5)
function timeout($timer = 7)
{
while (!isset($key)) {
if ($timer >= 9) { echo chr(8) . chr(8) . ($timer==9 ? chr(32) : null) . "{$timer}"; }

View File

@ -26,6 +26,7 @@
INSTALL="/.probe.for.install.media"
MNT="/tmp/hdrescue"
WAIT="........."
if [ "$(id -u)" != "0" ]; then
echo "Must be root."
@ -126,7 +127,7 @@ else
fi
if ! timeout_prompt \
'Press any key to start the configuration importer:' .......; then
'Press any key to start the configuration importer:' ${WAIT}; then
bootstrap_and_exit
fi
fi