summarylogtreecommitdiffstats
path: root/49-onlykey.rules
blob: 4421d7b851a7cb19cbac614e214ae33638e8e07b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# UDEV Rules for OnlyKey, https://docs.crp.to/linux.html
#
# This file must be placed at:
#
# /etc/udev/rules.d/49-onlykey.rules    (preferred location)
#   or
# /lib/udev/rules.d/49-onlykey.rules    (req'd on some broken systems)
#
# To install, type this command in a terminal:
#   sudo cp 49-onlykey.rules /etc/udev/rules.d/49-onlykey.rules
#
# After this file is installed, physically unplug and reconnect OnlyKey.
#
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", MODE:="0666"
#
# If you share your linux system with other users, or just don't like the
# idea of write permission for everybody, you can replace MODE:="0666" with
# OWNER:="yourusername" to create the device owned by you, or with
# GROUP:="somegroupname" and mange access using standard unix groups.