base-files: introduce commonly used helper functions for setting leds
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 18 Feb 2013 09:56:23 +0000 (09:56 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 18 Feb 2013 09:56:23 +0000 (09:56 +0000)
commitfb1862c487ba175fb3222d3cb0d233e2cf07c597
tree7f3d61c4ede74c2b27cb182a3cbee639c3fc70d0
parent7a5d156dbc4dea3bd1b6db8135365dda384695d8
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35648 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/Makefile
package/base-files/files/lib/functions/leds.sh [new file with mode: 0644]