summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannu Nyman2024-10-16 19:03:34 +0000
committerRobert Marko2024-10-17 16:15:05 +0000
commit5004f3780de581c7d67c4be0a57833ca1423a021 (patch)
treeb9f7cd04229977dcea92dd05bfcb583122069a34
parent172ccf73811eb5aa3177d274952c3f2a19890fe5 (diff)
downloadopenwrt-5004f3780de581c7d67c4be0a57833ca1423a021.tar.gz
base-files: Increase failsafe trigger wait time from 2 to 4 sec
Increase the failsafe waiting timeout period from 2 seconds to 4 seconds. Since commit 29207748b in 2015 we have had a rapid LED blinking indication for the failsafe triggering period. But the really short timeout of 2 seconds requires snappy reaction time from the user to notice the LED blinking and to push button inside the short window. Relax the timeout to 4 seconds, which more easily allows to notice the change in LED blinking and push a button. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> Link: https://github.com/openwrt/openwrt/pull/11852 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--package/base-files/Makefile2
-rw-r--r--package/base-files/image-config.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 313bf377b4..4da50a2736 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -77,7 +77,7 @@ endef
define ImageConfigOptions
mkdir -p $(1)/lib/preinit
echo 'pi_suppress_stderr="$(CONFIG_TARGET_PREINIT_SUPPRESS_STDERR)"' >$(1)/lib/preinit/00_preinit.conf
- echo 'fs_failsafe_wait_timeout=$(if $(CONFIG_TARGET_PREINIT_TIMEOUT),$(CONFIG_TARGET_PREINIT_TIMEOUT),2)' >>$(1)/lib/preinit/00_preinit.conf
+ echo 'fs_failsafe_wait_timeout=$(if $(CONFIG_TARGET_PREINIT_TIMEOUT),$(CONFIG_TARGET_PREINIT_TIMEOUT),4)' >>$(1)/lib/preinit/00_preinit.conf
echo 'pi_init_path="$(TARGET_INIT_PATH)"' >>$(1)/lib/preinit/00_preinit.conf
echo 'pi_init_env=$(if $(CONFIG_TARGET_INIT_ENV),$(CONFIG_TARGET_INIT_ENV),"")' >>$(1)/lib/preinit/00_preinit.conf
echo 'pi_init_cmd=$(if $(CONFIG_TARGET_INIT_CMD),$(CONFIG_TARGET_INIT_CMD),"/sbin/init")' >>$(1)/lib/preinit/00_preinit.conf
diff --git a/package/base-files/image-config.in b/package/base-files/image-config.in
index 2de2130b84..dee06e9b86 100644
--- a/package/base-files/image-config.in
+++ b/package/base-files/image-config.in
@@ -44,7 +44,7 @@ config TARGET_PREINIT_DISABLE_FAILSAFE
config TARGET_PREINIT_TIMEOUT
int
prompt "Failsafe/Debug wait timeout" if PREINITOPT
- default 2
+ default 4
help
How long to wait for failsafe mode to be entered or for
a debug option to be pressed before continuing with a