aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2016-10-19 13:05:53 +0200
committerRafał Miłecki <rafal@milecki.pl>2016-10-22 11:16:01 +0200
commit2187f57db6f55d41d68704179d309fbb6199b08e (patch)
tree2be4b254edec74d16f8091c170e3fa9b07c7025e /package/base-files/files/etc
parent32c28a78f798dffb983a7f00342b471e5e4ac177 (diff)
downloadupstream-2187f57db6f55d41d68704179d309fbb6199b08e.tar.gz
upstream-2187f57db6f55d41d68704179d309fbb6199b08e.tar.bz2
upstream-2187f57db6f55d41d68704179d309fbb6199b08e.zip
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>
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/led1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led
index 9a793e9a95..7c2a185013 100755
--- a/package/base-files/files/etc/init.d/led
+++ b/package/base-files/files/etc/init.d/led
@@ -19,6 +19,7 @@ load_led() {
config_get name $1 name "$sysfs"
config_get trigger $1 trigger "none"
config_get dev $1 dev
+ config_get ports $1 port
config_get mode $1 mode "link"
config_get_bool default $1 default "nil"
config_get delayon $1 delayon