openwrtv4/target/linux/ramips
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
..
base-files ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds scripts 2015-08-17 06:24:47 +00:00
dts ramips: use consistent naming scheme for LEDs 2015-08-17 06:24:34 +00:00
files ramips: collect rx related members to fe_rx_ring struct 2015-07-10 19:41:48 +00:00
image ramips: fix 7Links PX-4885 dts{, i}, board, image and profile names 2015-08-17 06:01:06 +00:00
mt7620 ramips: fix various mistakes in subtargets *.mk profiles 2015-08-17 06:01:38 +00:00
mt7621 ramips: fix various mistakes in subtargets *.mk profiles 2015-08-17 06:01:38 +00:00
mt7628 ramips: diable ill_acc driver by default 2015-05-27 20:02:04 +00:00
mt7688 ramips: add subtarget for mt7688 2015-07-24 09:11:56 +00:00
patches-3.18 ramips: reorder patches 2015-08-17 06:18:30 +00:00
rt288x ramips: fix various mistakes in subtargets *.mk profiles 2015-08-17 06:01:38 +00:00
rt305x ramips: fix various mistakes in subtargets *.mk profiles 2015-08-17 06:01:38 +00:00
rt3883 ramips: fix various mistakes in subtargets *.mk profiles 2015-08-17 06:01:38 +00:00
base-files.mk ramips: remove default network configuration, and generate that from uci-defaults 2011-12-01 22:48:51 +00:00
Makefile ramips: add subtarget for mt7688 2015-07-24 09:11:56 +00:00
modules.mk ramips: make sd driver depend on mt7688 2015-07-24 09:12:16 +00:00