Skip to content

Commit

Permalink
Add explanations in header
Browse files Browse the repository at this point in the history
  • Loading branch information
aiooss-ledger committed Jul 21, 2022
1 parent f10cbbe commit dac6320
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 20-hw1.rules
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Ledger device udev rules
#
# You may need to place this file in /etc/udev/rules.d/ and then run
# `udevadm control --reload` to enable non-root access to Ledger USB devices.
#
# Device identifiers are built using a 1-byte prefix corresponding to the device
# then 3-bytes to identify which USB interface are activated by current device
# application. For example 0x5011 corresponds to Nano S Plus with only WebUSB
# activated.
# Legacy device identifiers are "000[1-5]".

# HW.1 / Nano
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1b7c|2b7c|3b7c|4b7c", TAG+="uaccess", TAG+="udev-acl"
# Blue
Expand Down
11 changes: 11 additions & 0 deletions add_udev_rules.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/bin/bash
cat <<EOF > /etc/udev/rules.d/20-hw1.rules
# Ledger device udev rules
#
# You may need to place this file in /etc/udev/rules.d/ and then run
# `udevadm control --reload` to enable non-root access to Ledger USB devices.
#
# Device identifiers are built using a 1-byte prefix corresponding to the device
# then 3-bytes to identify which USB interface are activated by current device
# application. For example 0x5011 corresponds to Nano S Plus with only WebUSB
# activated.
# Legacy device identifiers are "000[1-5]".
# HW.1 / Nano
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1b7c|2b7c|3b7c|4b7c", TAG+="uaccess", TAG+="udev-acl"
# Blue
Expand Down

0 comments on commit dac6320

Please sign in to comment.