Guest User

Untitled

a guest
Jul 14th, 2014
200
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sudo bash -c "cat >/etc/init.d/set_led_mode.sh" <<EOL
  2. #!/bin/sh
  3. # one of: none mmc0 timer heartbeat backlight gpio cpu0 cpu1 default-on
  4. LED_MODE=none
  5. TRIGGER=/sys/class/leds/green\:ph24\:led1/trigger
  6. case "\$1" in
  7.     start)
  8.         echo \$LED_MODE > \$TRIGGER
  9.         ;;
  10. esac
  11. exit 0
  12. EOL
  13. sudo chmod +x /etc/init.d/set_led_mode.sh
  14. sudo update-rc.d set_led_mode.sh start 20 2 3 4 5 .
RAW Paste Data