base-files: support passing mode to ucidef_set_led_netdev()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48806
This commit is contained in:
@@ -355,6 +355,7 @@ ucidef_set_led_netdev() {
|
||||
local name="$2"
|
||||
local sysfs="$3"
|
||||
local dev="$4"
|
||||
local mode="${5:-link tx rx}"
|
||||
|
||||
json_select_object led
|
||||
|
||||
@@ -363,6 +364,7 @@ ucidef_set_led_netdev() {
|
||||
json_add_string type netdev
|
||||
json_add_string sysfs "$sysfs"
|
||||
json_add_string device "$dev"
|
||||
json_add_string mode "$mode"
|
||||
json_select ..
|
||||
|
||||
json_select ..
|
||||
|
||||
Reference in New Issue
Block a user