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

udev rule #15

Merged
merged 5 commits into from
Sep 17, 2023
Merged

udev rule #15

merged 5 commits into from
Sep 17, 2023

Conversation

christianrauch
Copy link
Contributor

@christianrauch christianrauch commented Sep 14, 2023

This adds and installs an udev rule to set the group permissions for the master and slave devices to dialout. This way, regular users of the dialout group can access the devices, similar to how they would access real serial devices.

I also documented how to build & install the module as this requires forwarding environment variables to the root shell via -E.

Note: This contains #14. Therefore, #14 should be merged first.

Fixes #13 .

Makefile Outdated Show resolved Hide resolved
@anszom anszom merged commit 9ef2185 into anszom:master Sep 17, 2023
@anszom
Copy link
Owner

anszom commented Sep 17, 2023

sorry for the delay

As a compromise, I've added a warning if the dialout group doesn't exist. We could try to copy the permissions from /dev/ttyS0, but that would be overkill, and still just a wild guess, since we don't really know if these are the permissions that the user/admin wants.

@anszom anszom mentioned this pull request Sep 17, 2023
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.

cannot install module
3 participants