summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/init.d/led
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc/init.d/led')
-rwxr-xr-xpackage/base-files/files/etc/init.d/led12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led
index 43964bf0b..729796bcc 100755
--- a/package/base-files/files/etc/init.d/led
+++ b/package/base-files/files/etc/init.d/led
@@ -24,6 +24,13 @@ load_led() {
config_get delayoff $1 delayoff
config_get interval $1 interval "50"
config_get port_state $1 port_state
+ config_get delay $1 delay "150"
+ config_get message $1 message ""
+
+ if [ "$trigger" = "rssi" ]; then
+ # handled by rssileds userspace process
+ return
+ fi
[ -e /sys/class/leds/${sysfs}/brightness ] && {
echo "setting up led ${name}"
@@ -61,6 +68,11 @@ load_led() {
echo $port_state > /sys/class/leds/${sysfs}/port_state
;;
+ "morse")
+ echo $message > /sys/class/leds/${sysfs}/message
+ echo $delay > /sys/class/leds/${sysfs}/delay
+ ;;
+
switch[0-9]*)
local port_mask