1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-18 21:48:23 +02:00
openwrt/target
John Crispin 0f155a330e ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds scripts
Instead of using board name provided explicitly as text in LED name, ex.:

[...]
mlwg2)
	status_led="mlwg2:blue:system"
[...]

use $board variable, which allows to combine together multiple boards with same color and LED names, ex:

[...]
mlw221|\
mlwg2)
	status_led="$board:blue:system"
[...]

The above approach allows to shrink size of code in base-files/etc/board.d/01_leds and base-files/etc/diag.sh scripts dramatically.
One thing to keep in mind here is that we assume to use proper and consistent LED naming scheme ("device:color:led-name").

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46665
2015-08-17 06:24:47 +00:00
..
imagebuilder build: Prevent more gzip timestamps 2015-07-14 09:57:45 +00:00
linux ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds scripts 2015-08-17 06:24:47 +00:00
sdk sdk: provide explicit CONFIG_MODULES kconfig symbol 2015-07-27 23:45:15 +00:00
toolchain
Config.in build: remove obsolete references to cris and avr32 2015-03-24 10:07:40 +00:00
Makefile