openwrt/package/base-files/files/lib/functions
John Crispin 29207748b9 base-files: Use 200ms LED timing as before for the new phase preinit_regular.
This restores normal pre-r43715 200ms blink-period for the System LED we're all accustomed to see while our OpenWrt routers are booting.

Failsafe possibility will now be signalled with a new 100ms blinking, which is easily recognizable from the normal 200ms booting.

So no existing user will be scared by a new 500ms LED pattern, since such a slow pattern could easily be mistaken for something wrong... I was like "ok why my router is collapsing now, is this a bad flash, a kernel panic, or what else" when I've seen it for the first time ;)

Sorry for not having explained myself better in v1 of this patch.

Original:
Preinit, failsafe is possible: 200ms
Preinit, failsafe not possible anymore, booting normally: 200ms
Failsafe entered: 50ms

Now (after preinit_regular has been introduced):
Preinit, failsafe is possible: 200ms
Preinit, failsafe not possible anymore, booting normally: 500ms *here is the "offending" change*
Failsafe entered: 50ms

With my proposed patch:
Preinit, failsafe is possible: 100ms *indicate this condition with a new timing, that prompts the user to press the key if they want to start failsafe*
Preinit, failsafe not possible anymore, booting normally: 200ms *keep this as before*
Failsafe entered: 50ms

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 44056
2015-01-20 06:54:53 +00:00
..
leds.sh base-files: Use 200ms LED timing as before for the new phase preinit_regular. 2015-01-20 06:54:53 +00:00
network.sh base-files: add network_get_ipaddrs_all() 2014-10-09 07:16:29 +00:00
preinit.sh /lib/functions.sh: move preinit related functions to /lib/functions/preinit.sh 2014-04-07 09:50:19 +00:00
service.sh base-files: remove function service_kill 2014-06-02 12:43:10 +00:00
system.sh base-files: strip quotes from the MAC address in macaddr_canonicalize() 2014-07-14 10:25:49 +00:00
uci-defaults-new.sh base-files: Fix switch settings for uci-defaults-new.sh. 2015-01-08 20:26:52 +00:00
uci-defaults.sh base-files: Add ucidef_set_led_timer to uci-defaults.sh 2015-01-17 13:58:14 +00:00