Mercurial > templog
changeset 281:6e3b5bfa4b02
fix gpio chown script
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 30 Nov 2015 21:40:45 +0800 |
parents | 6848907f85be |
children | d3ebdb1d6a55 |
files | py/setup_gpio.sh |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/py/setup_gpio.sh Sat Nov 28 08:42:33 2015 +0800 +++ b/py/setup_gpio.sh Mon Nov 30 21:40:45 2015 +0800 @@ -2,11 +2,12 @@ # this must run as root -chgrp gpio /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value -chmod g+w /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value PINS="17" for PIN in $PINS; do echo $PIN > /sys/class/gpio/export done + +chgrp gpio /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value +chmod g+w /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value