aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/etc/init.d/led9
1 files changed, 5 insertions, 4 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led
index 277fb4e76f..51cb8b5178 100755
--- a/package/base-files/files/etc/init.d/led
+++ b/package/base-files/files/etc/init.d/led
@@ -31,10 +31,11 @@ load_led() {
config_get gpio $1 gpio "0"
config_get inverted $1 inverted "0"
- if [ "$trigger" = "rssi" ]; then
- # handled by rssileds userspace process
- return
- fi
+ # execute application led trigger
+ [ -f "/usr/libexec/led-trigger/${trigger}" ] && {
+ . "/usr/libexec/led-trigger/${trigger}"
+ return 0
+ }
[ "$trigger" = "usbdev" ] && {
# Backward compatibility: translate to the new trigger