Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO pin permission fix #75

Merged
merged 1 commit into from
Jul 17, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/raspberryconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ groupadd -f --system gpio
chgrp gpio /usr/local/bin/gpio-admin
chmod u=rwxs,g=rx,o= /usr/local/bin/gpio-admin

touch /lib/udev/rules.d/60-python-pifacecommon.rules
echo 'KERNEL=="spidev*", GROUP="spi", MODE="0660"
SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c' "'chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio; chown -R root:gpio /sys/devices/virtual/gpio && chmod -R 770 /sys/devices/virtual/gpio; chown -R root:gpio /sys/devices/platform/soc/*.gpio/gpio && chmod -R 770 /sys/devices/platform/soc/*.gpio/gpio'"'"' > /lib/udev/rules.d/60-python-pifacecommon.rules

echo "adding volumio to gpio group"
sudo adduser volumio gpio

Expand Down