kopia lustrzana https://github.com/nanosyzygy/ShuttlePRO
Reorganized rules file so it checks for devices by name before id.
rodzic
4519c612e8
commit
e1791019d6
|
@ -1,4 +1,3 @@
|
|||
|
||||
# Allows global read access to any ShuttlePRO device and autostarts shuttle app
|
||||
|
||||
# install this file in /etc/udev/rules.d
|
||||
|
@ -7,8 +6,11 @@
|
|||
ACTION=="add", ATTRS{name}=="Contour Design ShuttlePRO v2", MODE="0644", RUN+="/usr/local/bin/shuttle /dev/input/by-id/usb-Contour_Design_ShuttlePRO_v2-event-if00 &"
|
||||
ACTION=="remove", ATTRS{name}=="Contour Design ShuttlePRO v2", RUN+="/usr/bin/pkill shuttlepro"
|
||||
|
||||
#ShuttleXpress / SpaceShuttle A/V
|
||||
ACTION=="add", ATTRS{name}=="Contour Design, Inc. ShuttleXpress", MODE="0644", RUN+="/usr/local/bin/shuttle /dev/input/by-id/usb-Contour_Design_ShuttleXpress-event-if00 &"
|
||||
# SpaceShuttle
|
||||
ACTION=="add", ATTRS{name}=="CAVS SpaceShuttle A/V", MODE="0644", RUN+="/usr/local/bin/shuttle /dev/input/by-id/usb-CAVS_SpaceShuttle_A_V-event-if00 &"
|
||||
ACTION=="remove", ATTRS{name}=="CAVS SpaceShuttle A/V", RUN+="/usr/bin/pkill shuttlepro"
|
||||
|
||||
# ShuttleXpress
|
||||
ACTION=="add", ATTRS{idVendor}=="0b33", ATTRS{idProduct}=="0020", MODE="0644", RUN+="/usr/local/bin/shuttle /dev/input/by-id/usb-Contour_Design_ShuttleXpress-event-if00 &"
|
||||
ACTION=="remove", ATTRS{idVendor}=="0b33", ATTRS{idProduct}=="0020", RUN+="/usr/bin/pkill shuttlepro"
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue