Advertisement
KpuCko

hello world orange pi pc

Mar 24th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. root@OrangePI:~# cat hello-world.sh
  2. #!/bin/bash
  3.  
  4. while true
  5. do
  6.  
  7. # Turn on the standby led
  8. echo 1 > /sys/class/gpio_sw/standby_led/data
  9.  
  10. # Sleep for 5 seconds
  11. sleep 5
  12.  
  13. # Turn of the standy led
  14. echo 0 > /sys/class/gpio_sw/standby_led/data
  15.  
  16. # Sleep for 5 seconds
  17. sleep 5
  18.  
  19. done
  20.  
  21. # EOF
  22. root@OrangePI:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement