aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-01-31 12:55:54 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-01-31 12:55:54 +0100
commit3e37da97c7b2417251585c1d985b54c9a71561e7 (patch)
tree8e241d9ce51ae017c4976e41f7301fb8568983a1 /data
parent25e458ea8fdd4d704ce29709852b122cbcad5f06 (diff)
parent248b08c41ee851864263979d1164e7c8be897d63 (diff)
downloadlibnitrokey-3e37da97c7b2417251585c1d985b54c9a71561e7.tar.gz
libnitrokey-3e37da97c7b2417251585c1d985b54c9a71561e7.tar.bz2
Merge branch 'add_udev'
Diffstat (limited to 'data')
-rw-r--r--data/41-nitrokey.rules23
1 files changed, 23 insertions, 0 deletions
diff --git a/data/41-nitrokey.rules b/data/41-nitrokey.rules
new file mode 100644
index 0000000..764f4bf
--- /dev/null
+++ b/data/41-nitrokey.rules
@@ -0,0 +1,23 @@
+# Nitrokey U2F
+KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="plugdev", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="f1d0"
+
+SUBSYSTEM!="usb", GOTO="gnupg_rules_end"
+ACTION!="add", GOTO="gnupg_rules_end"
+
+# USB SmartCard Readers
+## Crypto Stick 1.2
+ATTR{idVendor}=="20a0", ATTR{idProduct}=="4107", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg", GROUP+="plugdev", TAG+="uaccess"
+## Nitrokey Pro
+ATTR{idVendor}=="20a0", ATTR{idProduct}=="4108", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg", GROUP+="plugdev", TAG+="uaccess"
+## Nitrokey Storage
+ATTR{idVendor}=="20a0", ATTR{idProduct}=="4109", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg", GROUP+="plugdev", TAG+="uaccess"
+## Nitrokey Start
+ATTR{idVendor}=="20a0", ATTR{idProduct}=="4211", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg", GROUP+="plugdev", TAG+="uaccess"
+## Nitrokey HSM
+ATTR{idVendor}=="20a0", ATTR{idProduct}=="4230", ENV{ID_SMARTCARD_READER}="1", ENV{ID_SMARTCARD_READER_DRIVER}="gnupg", GROUP+="plugdev", TAG+="uaccess"
+
+LABEL="gnupg_rules_end"
+
+
+# Nitrokey Storage dev Entry
+KERNEL=="sd?1", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="4109", SYMLINK+="nitrospace"