From: Hannu Nyman Date: Wed, 16 Oct 2024 19:03:34 +0000 (+0300) Subject: base-files: Increase failsafe trigger wait time from 2 to 4 sec X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5004f3780de581c7d67c4be0a57833ca1423a021;p=openwrt%2Fstaging%2Fstintel.git 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 Link: https://github.com/openwrt/openwrt/pull/11852 Signed-off-by: Robert Marko --- 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