Mercurial > templog
changeset 567:f93290b37abf
chown gpio files too
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 10 Nov 2015 21:10:57 +0800 |
parents | 87d064493714 |
children | 8eb16d97ed2b |
files | py/setup_gpio.sh |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/py/setup_gpio.sh Tue Aug 11 22:19:29 2015 +0800 +++ b/py/setup_gpio.sh Tue Nov 10 21:10:57 2015 +0800 @@ -2,6 +2,9 @@ # 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