-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename the rules file so its ordering in the set of rules is more tightly defined. The range 4* is typically used for USB serial devices (for example, https://github.com/Nitrokey/libnitrokey/blob/master/data/41-nitrokey.rules). Use the new `uaccess` tag to give the user access to the device, rather than hard-coding world-accessible permissions. (See systemd/systemd#4288.) Drop the `/dev/ttyANT*` symlink, which was unused in the code and just cluttered up the devfs. Instead, set the `ID_ANT_DEVICE` variable on the device. The code in openant could eventually key on that to find USB devices to drive (currently it manually matches by vendor and product). Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
- Loading branch information
Showing
4 changed files
with
15 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include README | ||
include LICENCE | ||
include resources/ant-usb-sticks.rules | ||
include resources/42-ant-usb-sticks.rules | ||
include examples/*.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This files changes the mode of the Dynastream ANT UsbStick2 so all users | ||
# can read and write to it. | ||
# | ||
# This file should go into '/etc/udev/rules.d'. Note that it should go in | ||
# before 73-seat-late.rules for `uaccess` to work. | ||
|
||
ACTION!="add", GOTO="openant_rules_end" | ||
SUBSYSTEM!="usb", GOTO="openant_rules_end" | ||
|
||
ATTR{idVendor}=="0fcf", ATTR{idProduct}=="1008", ENV{ID_ANT_DEVICE}="1", TAG+="uaccess" | ||
ATTR{idVendor}=="0fcf", ATTR{idProduct}=="1009", ENV{ID_ANT_DEVICE}="1", TAG+="uaccess" | ||
|
||
LABEL="openant_rules_end" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters