diff options
author | John Crispin <blogic@openwrt.org> | 2015-08-17 06:24:47 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-08-17 06:24:47 +0000 |
commit | ac9ed3f918b7d01f229bf2253d23888fa23bf284 (patch) | |
tree | d67d33b5b95617a3ceee3c843c6ece4f9b29aea8 /docs/network.tex | |
parent | d8b556b090305f19eb20fe13026bcf543de2f547 (diff) | |
download | master-187ad058-ac9ed3f918b7d01f229bf2253d23888fa23bf284.tar.gz master-187ad058-ac9ed3f918b7d01f229bf2253d23888fa23bf284.tar.bz2 master-187ad058-ac9ed3f918b7d01f229bf2253d23888fa23bf284.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46665 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'docs/network.tex')
0 files changed, 0 insertions, 0 deletions