base-files: introduce commonly used helper functions for setting leds
authorGabor Juhos <juhosg@openwrt.org>
Mon, 18 Feb 2013 09:56:23 +0000 (09:56 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 18 Feb 2013 09:56:23 +0000 (09:56 +0000)
commit6c627a266ba6c9c608b897a90314e9aedb0539b9
treed70fae13cc5cedd2d3663573ac1acefa8a884593
parentc4f14fab9b1009754df65e4142a09bfd54e95db1
base-files: introduce commonly used helper functions for setting leds

Currently, most platforms define such helpers in their own diag.sh
implementation with almost identical code. By factoring out the
common ground it's possible to simplify maintainability and
homogenize the haptics over multiple platforms (so far as is
reasonably practicable, in a next step).

[juhosg:
 - fix led_set_attr parameters in led_timer
 - add led_morse and status_led_set_morse helpers
 - add status_led_blink_{preinit,failsafe} helpers]

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35648
package/base-files/Makefile
package/base-files/files/lib/functions/leds.sh [new file with mode: 0644]