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

Fixes for setgpio script to avoid resource busy errors #11

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

hlapp
Copy link
Collaborator

@hlapp hlapp commented Jan 18, 2016

This script is run every time the /etc/init/ninjablock.conf service is started. This will generate a resource busy write error if the GPIOs have already been exported the first time. The changes fix that.

Also removes the extraneous sudo prefixes. There is no point in running this not as root, so one might as well run the whole script as sudo.

hlapp added 2 commits January 18, 2016 01:27
This will simply need to be run with sudo (or as root).
hlapp added a commit to hlapp/ninjablocks-utilities that referenced this pull request Jan 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant