openwrt/target/linux
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
..
adm5120
adm8668
ar7
ar71xx ar71xx: add support for TP-Link TL-WDR6500 v2 2015-08-17 06:24:04 +00:00
arm64
at91 at91: Backport determine_rate prototype fix 2015-08-17 06:16:29 +00:00
ath25
au1000
bcm53xx kernel: move linux, part-probe dt parsing in generic code 2015-08-17 06:17:37 +00:00
brcm47xx
brcm63xx
brcm2708 brcm2708: override disabled device tree module status from config.txt 2015-08-17 06:04:48 +00:00
cns3xxx
gemini
generic kernel: move linux, part-probe dt parsing in generic code 2015-08-17 06:17:37 +00:00
imx6
ipq806x ipq806x: switch AP148 to using SMEM based MTD parser 2015-08-17 06:18:15 +00:00
ixp4xx
kirkwood
lantiq
malta
mcs814x mcs814x: use firmware partition splitter on dLAN USB Extender 2015-08-17 06:16:19 +00:00
mpc85xx
mvebu
mxs
netlogic
octeon
omap
omap24xx
orion
oxnas oxnas: switch to kernel 4.1 2015-08-17 06:04:02 +00:00
ppc40x
ppc44x
pxa
ramips ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds scripts 2015-08-17 06:24:47 +00:00
rb532
realview
sunxi
uml
x86
xburst
Makefile