Mercurial > templog
changeset 579:4a6e75ed2ed4
fix gpio chown script
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 30 Nov 2015 21:40:45 +0800 |
parents | 358293768234 |
children | 2ab866ee4f8c |
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