openwrtv3/package/base-files/files/lib
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
..
functions base-files: add ucidef_set_led_usbport for full usbport support 2016-10-22 11:16:01 +02:00
preinit base-files: set pi_ifname in board.d case to fix deconfig 2016-08-14 23:10:17 +02:00
upgrade sysupgrade: unmount filesystems before reboot 2016-08-04 18:19:46 +02:00
functions.sh base-files: make default_prerm work offline 2016-09-26 17:57:57 +02:00