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
..
2015-07-05 21:32:44 +00:00
2015-05-27 14:57:38 +00:00
2015-07-14 09:57:45 +00:00
2015-08-14 13:06:33 +00:00
2015-06-30 23:26:09 +00:00
2015-07-22 12:51:11 +00:00
2015-05-21 19:32:46 +00:00
2015-08-14 13:06:33 +00:00
2015-07-14 09:57:45 +00:00
2015-08-05 13:55:14 +00:00
2015-05-29 11:28:20 +00:00
2015-05-27 15:34:30 +00:00
2015-04-28 13:31:08 +00:00
2015-08-17 06:04:02 +00:00
2015-04-12 20:48:13 +00:00
2015-05-21 19:32:46 +00:00
2015-03-28 13:20:52 +00:00