openwrtv3/package/base-files/files/lib/functions
Rafał Miłecki 2187f57db6 base-files: add ucidef_set_led_usbport for full usbport support
This helper allows using usbport trigger directly. It requires usbport
compatible syntax and supports specifying multiple USB ports, e.g.:
ucidef_set_led_usbport "usb" "USB" "devicename:colour:function" "usb1-port1" "usb2-port1"

This adds a proper object to the board.json, e.g.
"usb": {
	"name": "USB",
	"type": "usbport",
	"sysfs": "devicename:colour:function",
	"ports": [
		"usb1-port1",
		"usb2-port1"
	]
}
and supports translating it into uci section.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2016-10-22 11:16:01 +02:00
..
leds.sh kernel: remove unused morse led trigger driver 2016-08-04 20:53:02 +02:00
network.sh base-files: add network_get_ipaddrs_all() 2014-10-09 07:16:29 +00: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: cleanup mtd_get_mac_binary hexdump 2015-12-19 11:28:42 +00:00
uci-defaults.sh base-files: add ucidef_set_led_usbport for full usbport support 2016-10-22 11:16:01 +02:00