my-disable-leds 176 B

12345678
  1. #!/bin/sh
  2. for led in /sys/class/leds/*; do
  3. if [ -w "$led/trigger" -a -w "$led/brightness" ]; then
  4. /bin/echo gpio > "$led/trigger"
  5. /bin/echo 0 > "$led/brightness"
  6. fi
  7. done