Skip to content

Commit

Permalink
Add sample udev rules
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygab committed Nov 27, 2024
1 parent fa10624 commit 4a2347f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions hacks/88-buspirate.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# BusPirate 5 / 5XL / 6 -- OPTIONAL udev rules
#
# copy this file to `/etc/udev/rules.conf/88-buspirate.rules
#
# This file is ENTIRELY optional. It does the following:
#
# 1. Sets the group owner to `dialout`
#
# 2. Sets the permissions to 0660 to allow `dialout` group read/write access
#
# 2. Creates two symlinks with friendlier names:
# /dev/buspirate-%n := serial console (interactive use)
# /dev/buspirate-bin-%n := binary mode interfaces
#
# Note that the `%n` value will correspond to the `/dev/tty%n` value.
# (There is no simple way to force these to number sequentially from
# zero without holes in the numbering.)
#

SUBSYSTEM=="tty", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="7331", ENV{ID_USB_INTERFACE_NUM}=="00", SYMLINK+="buspirate-%n", MODE="660", GROUP="dialout"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="7331", ENV{ID_USB_INTERFACE_NUM}=="02", SYMLINK+="buspirate-bin-%n", MODE="660", GROUP="dialout"

0 comments on commit 4a2347f

Please sign in to comment.