You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target
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
9 years ago
..
imagebuilder build: Prevent more gzip timestamps 9 years ago
linux ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds scripts 9 years ago
sdk sdk: provide explicit CONFIG_MODULES kconfig symbol 9 years ago
toolchain toolchain: respect CONFIG_VERSION_FILENAMES and add host system suffix 10 years ago
Config.in build: remove obsolete references to cris and avr32 9 years ago
Makefile target: do not make target/*/install depend on target/*/compile - removes one redundant kernel build dir call on target/install 12 years ago