Skip to content

Commit

Permalink
Add udev rule
Browse files Browse the repository at this point in the history
Use the udev rule to give the device a consistent location in /dev, and
use that to find it from the code.
  • Loading branch information
threedaymonk committed Sep 16, 2012
1 parent 58d2d0b commit c090967
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions 90-shuttlexpress.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copy to /etc/usb/rules.d/
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0b33", ATTRS{idProduct}=="0020", SYMLINK+="shuttlexpress", MODE="0666"
2 changes: 1 addition & 1 deletion shuttle.scm
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
(loop current))))

; Find the first accessible ShuttleXpress (if any) and process input
(let ((fds (shuttle-fds "/dev/hidraw*")))
(let ((fds (shuttle-fds "/dev/shuttlexpress")))
(if (null? fds)
(begin
(print "No ShuttleXpress devices found")
Expand Down

0 comments on commit c090967

Please sign in to comment.