From b88f72c1403bea1529b8ba16230a646ef11672b0 Mon Sep 17 00:00:00 2001 From: Deksan Date: Sat, 4 Jan 2014 14:24:04 +0100 Subject: [PATCH] Moved disable_led.sh into script folder Addded LSB information to avoid warning during startup. --- scripts/disable_led.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/disable_led.sh diff --git a/scripts/disable_led.sh b/scripts/disable_led.sh new file mode 100644 index 0000000..cc2dd12 --- /dev/null +++ b/scripts/disable_led.sh @@ -0,0 +1,16 @@ +### BEGIN INIT INFO +# Provides: Disable bright leds from Cubietruck +# Required-Start: $local_fs $network +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: CT Led disabler +# Description: Disable bright leds from cubietruck using /sys/class/leds +### END INIT INFO +# +# Turn off bright flashing LEDs!! +echo 0 > /sys/class/leds/blue:ph21:led1/brightness +echo 0 > /sys/class/leds/orange:ph20:led2/brightness +echo 0 > /sys/class/leds/white:ph11:led3/brightness +echo 0 > /sys/class/leds/green:ph07:led4/brightness +