openwrtv3/target/linux/ramips/base-files/etc
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
..
board.d ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds scripts 2015-08-17 06:24:47 +00:00
hotplug.d ramips: update BR-6475ND dts 2015-01-08 20:26:02 +00:00
uci-defaults targets: files in uci-defaults do not need to be executables 2015-02-07 19:58:52 +00:00
diag.sh ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds scripts 2015-08-17 06:24:47 +00:00
inittab ralink: switch to askconsole 2014-01-12 12:07:34 +00:00