Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@OrangePI:~# cat hello-world.sh
- #!/bin/bash
- while true
- do
- # Turn on the standby led
- echo 1 > /sys/class/gpio_sw/standby_led/data
- # Sleep for 5 seconds
- sleep 5
- # Turn of the standy led
- echo 0 > /sys/class/gpio_sw/standby_led/data
- # Sleep for 5 seconds
- sleep 5
- done
- # EOF
- root@OrangePI:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement