Mercurial > templog
view py/setup_gpio.sh @ 149:d686b111dab4
working better. logging works properly, cleanup fridge.off() happens.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 16 Dec 2012 22:14:46 +0800 |
parents | b32e5a11a4cb |
children | d03157c7ad60 |
line wrap: on
line source
#!/bin/sh # this must run as root PIN=17 GROUP=fridgeio echo $PIN > /sys/class/gpio/export for f in direction value; do fn=/sys/devices/virtual/gpio/gpio$PIN/$f chgrp $GROUP $fn chmod g+rw $fn done