mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Merge pull request #11 from pierreluctg/patch-1
Adding udev rules examples
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
# Intrepid Control System, Inc. neoVI Devices
|
||||||
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="093c", GROUP="users", MODE="0666"
|
||||||
|
KERNEL=="ttyUSB?", ATTRS{idVendor}=="093c", GROUP="users", MODE="0666"
|
||||||
|
KERNEL=="ttyACM?", ATTRS{idVendor}=="093c", GROUP="users", MODE="0666"
|
||||||
|
|
||||||
|
# neoVI ION/PLASMA PIDs are not in the latest ftdi_sio driver so lets make a
|
||||||
|
# rule to add it when we see a new unclaimed device.
|
||||||
|
# PLASMA = 0x0801, ION = 0x0901
|
||||||
|
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_interface", \
|
||||||
|
ATTRS{idVendor}=="093c", ATTRS{idProduct}=="0801", \
|
||||||
|
DRIVER=="", \
|
||||||
|
RUN+="/sbin/modprobe -b ftdi_sio"
|
||||||
|
ACTION=="add", SUBSYSTEM=="drivers", \
|
||||||
|
ENV{DEVPATH}=="/bus/usb-serial/drivers/ftdi_sio", \
|
||||||
|
ATTR{new_id}="093c 0801"
|
||||||
|
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_interface", \
|
||||||
|
ATTRS{idVendor}=="093c", ATTRS{idProduct}=="0901", \
|
||||||
|
DRIVER=="", \
|
||||||
|
RUN+="/sbin/modprobe -b ftdi_sio"
|
||||||
|
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_interface", \
|
||||||
|
ATTRS{idVendor}=="093c", ATTRS{idProduct}=="1000", \
|
||||||
|
DRIVER=="", \
|
||||||
|
RUN+="/sbin/modprobe -b ftdi_sio"
|
||||||
|
ACTION=="add", SUBSYSTEM=="drivers", \
|
||||||
|
ENV{DEVPATH}=="/bus/usb-serial/drivers/ftdi_sio", \
|
||||||
|
ATTR{new_id}="093c 0901"
|
||||||
@@ -122,3 +122,9 @@ The dependencies are as follows
|
|||||||
- GCC 4.7 or above, 4.8+ recommended
|
- GCC 4.7 or above, 4.8+ recommended
|
||||||
- `libusb-1.0-0-dev`
|
- `libusb-1.0-0-dev`
|
||||||
- `build-essential` is recommended
|
- `build-essential` is recommended
|
||||||
|
|
||||||
|
If you'd like to be able to run programs that use this library without being root, consider using the included udev rules
|
||||||
|
|
||||||
|
```
|
||||||
|
$ sudo cp 99-intrepidcs.rules /etc/udev/rules.d/
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user