Skip to content

Fixes for setgpio script to avoid resource busy errors#11

Open
hlapp wants to merge 2 commits into
ninjablocks:developfrom
hlapp:fix-setgpio
Open

Fixes for setgpio script to avoid resource busy errors#11
hlapp wants to merge 2 commits into
ninjablocks:developfrom
hlapp:fix-setgpio

Conversation

@hlapp
Copy link
Copy Markdown
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