Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo bash -c "cat >/etc/init.d/set_led_mode.sh" <<EOL
- #!/bin/sh
- # one of: none mmc0 timer heartbeat backlight gpio cpu0 cpu1 default-on
- LED_MODE=none
- TRIGGER=/sys/class/leds/green\:ph24\:led1/trigger
- case "\$1" in
- start)
- echo \$LED_MODE > \$TRIGGER
- ;;
- esac
- exit 0
- EOL
- sudo chmod +x /etc/init.d/set_led_mode.sh
- sudo update-rc.d set_led_mode.sh start 20 2 3 4 5 .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement