Skip to content

Commit

Permalink
update udev rules
Browse files Browse the repository at this point in the history
  • Loading branch information
duguyue100 committed Nov 13, 2018
1 parent ad474fe commit ced331c
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions install-udev.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
#!/bin/bash
touch /tmp/65-inilabs.rules
touch /tmp/65-inivation.rules
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="152a", ATTR{idProduct}=="84[0-1]?", MODE="0666"
' >> /tmp/65-inilabs.rules
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6014", MODE="0666"' >> /tmp/65-inilabs.rules
' >> /tmp/65-inivation.rules
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6014", MODE="0666"' >> /tmp/65-inivation.rules

# copied from https://github.com/uzh-rpg/rpg_dvs_ros
touch /tmp/66-inivation_devel.rules
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="1134", ATTR{idProduct}=="8001", MODE="0666"
' >> /tmp/66-inivation_devel.rules
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="8613", MODE="0666"
' >> /tmp/66-inivation_devel.rules
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="0053", MODE="0666"
' >> /tmp/66-inivation_devel.rules
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="00f3", MODE="0666"' >> /tmp/66-inivation_devel.rules

# copied from https://gitlab.com/inivation/libcaer
echo "Copying udev rule (needs root privileges)."
sudo cp /tmp/65-inilabs.rules /etc/udev/rules.d/
sudo cp /tmp/65-inivation.rules /etc/udev/rules.d/
sudo cp /tmp/66-inivation_devel.rules /etc/udev/rules.d/

echo "Reloading udev rules."
sudo udevadm control --reload-rules
Expand Down

0 comments on commit ced331c

Please sign in to comment.