json_add_string macaddr $macaddr
json_select ..
-
+
json_select ..
}
local dev=$4
json_select_object led
-
+
json_select_object $1
json_add_string name $name
json_add_string type netdev
local sysfs=$2
json_select_object led
-
+
json_select_object $1
json_add_string name $name
json_add_string type interface
local dev=$4
json_select_object led
-
+
json_select_object $1
- json_add_string name $name
+ json_add_string name $name
json_add_string type usb
json_add_string sysfs $sysfs
json_add_string device $dev
local trigger=$4
json_select_object led
-
+
json_select_object $1
json_add_string name $name
json_add_string type trigger
local port_mask=$5
json_select_object led
-
+
json_select_object $1
json_add_string name $name
json_add_string type switch
local default=$4
json_select_object led
-
+
json_select_object $1
json_add_string name $name
json_add_string sysfs $sysfs
local factor=$8
json_select_object led
-
+
json_select_object rssi
json_select_object $1
json_add_string name $name
local threshold="$3"
json_select_object led
-
+
json_select_object rssi
json_add_string type rssi
json_add_string dev $dev
json_select ..
json_select ..
-
+
}
board_config_update() {