openwrtv3/package/base-files/files/lib/functions
Christian Lamparter 641dc50164 base-files: make it possible to specify switch led mode
The swconfig switch led driver has the ability to switch
between a "link, rx and/or tx" mode. However, this feature
was not implemented in uci, the led init script and
config_generate.

This patch adds a seventh parameter to the
ucidef_set_led_switch() function. The accepted values for
this parameter are: link, rx and tx.
Any permutations of these three values are supported, as
long as they are properly encased with quotes.
If the parameter is not specified it will default to "all"
(link rx tx).

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2018-09-29 17:23:11 +02:00
..
leds.sh base-files: get_dt_led: don't warn about missing led 2018-04-04 09:12:39 +02:00
network.sh base-files: add network_get_metric() to /lib/functions/network.sh 2018-09-25 10:16:03 +02:00
preinit.sh base-files: fix ramoverlay function with kernels 3.18+ 2015-09-21 17:41:07 +00:00
service.sh base-files: remove function service_kill 2014-06-02 12:43:10 +00:00
system.sh base-files: add function to get mac as text from flash 2018-08-11 21:36:27 +02:00
uci-defaults.sh base-files: make it possible to specify switch led mode 2018-09-29 17:23:11 +02:00