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)
commit58e60c2d0bf6f9ef280cc616b66eea86027c4b15
tree7f3d61c4ede74c2b27cb182a3cbee639c3fc70d0
parent256ee3a81be1e3be32eb7c38d4a838d65f6d9a08
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]