From 242912aa6d53cd35f2cdc322970c8509b58bae75 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sat, 19 May 2018 09:44:19 +0200 Subject: [PATCH] rc: increase both keypress timeouts slightly --- src/etc/inc/console.inc | 2 +- src/sbin/opnsense-importer | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/console.inc b/src/etc/inc/console.inc index 8020691a3..28be884c6 100644 --- a/src/etc/inc/console.inc +++ b/src/etc/inc/console.inc @@ -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}"; } diff --git a/src/sbin/opnsense-importer b/src/sbin/opnsense-importer index 2662a8b1f..670e5f36f 100755 --- a/src/sbin/opnsense-importer +++ b/src/sbin/opnsense-importer @@ -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