aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-08-04 19:12:21 +0200
committerFelix Fietkau <nbd@nbd.name>2016-08-04 20:53:02 +0200
commit577f873dafdf3914c79ee21869288f20d419a39f (patch)
treeab095458101aea1eef8766a97dc307207464f22d /package/base-files/files
parent9e62a7668c4085563a907da51a08819c88d04f33 (diff)
downloadupstream-577f873dafdf3914c79ee21869288f20d419a39f.tar.gz
upstream-577f873dafdf3914c79ee21869288f20d419a39f.tar.bz2
upstream-577f873dafdf3914c79ee21869288f20d419a39f.zip
kernel: remove unused morse led trigger driver
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/etc/init.d/led5
-rw-r--r--package/base-files/files/lib/functions/leds.sh11
2 files changed, 0 insertions, 16 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led
index 1d10f723d0..aca0149c24 100755
--- a/package/base-files/files/etc/init.d/led
+++ b/package/base-files/files/etc/init.d/led
@@ -83,11 +83,6 @@ 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
- ;;
-
"gpio")
echo $gpio > /sys/class/leds/${sysfs}/gpio
echo $inverted > /sys/class/leds/${sysfs}/inverted
diff --git a/package/base-files/files/lib/functions/leds.sh b/package/base-files/files/lib/functions/leds.sh
index d4d45125c5..857e7e5392 100644
--- a/package/base-files/files/lib/functions/leds.sh
+++ b/package/base-files/files/lib/functions/leds.sh
@@ -21,12 +21,6 @@ led_off() {
led_set_attr $1 "brightness" 0
}
-led_morse() {
- led_set_attr $1 "trigger" "morse"
- led_set_attr $1 "delay" "$2"
- led_set_attr $1 "message" "$3"
-}
-
status_led_set_timer() {
led_timer $status_led "$1" "$2"
[ -n "$status_led2" ] && led_timer $status_led2 "$1" "$2"
@@ -36,11 +30,6 @@ status_led_set_heartbeat() {
led_set_attr $status_led "trigger" "heartbeat"
}
-status_led_set_morse() {
- led_morse $status_led "$1" "$2"
- [ -n "$status_led2" ] && led_morse $status_led2 "$1" "$2"
-}
-
status_led_on() {
led_on $status_led
[ -n "$status_led2" ] && led_on $status_led2