Skip to content
Snippets Groups Projects
Commit 0f155a33 authored by John Crispin's avatar John Crispin
Browse files

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: default avatarPiotr Dymacz <pepe2k@gmail.com>

SVN-Revision: 46665
parent 1a392636
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment