mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 20:17:47 +08:00
add install usb rules
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
|||||||
|
# UVC cameras ()
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2bc5", ATTRS{idProduct}=="0635", MODE:="0666", OWNER:="root", GROUP:="video", SYMLINK+="Femto"
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2bc5", ATTRS{idProduct}=="0638", MODE:="0666", OWNER:="root", GROUP:="video", SYMLINK+="Femto-w"
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2bc5", ATTRS{idProduct}=="0668", MODE:="0666", OWNER:="root", GROUP:="video", SYMLINK+="Femto-live"
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2bc5", ATTRS{idProduct}=="0636", MODE:="0666", OWNER:="root", GROUP:="video", SYMLINK+="Astra+"
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2bc5", ATTRS{idProduct}=="0637", MODE:="0666", OWNER:="root", GROUP:="video", SYMLINK+="Astra+s"
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2bc5", ATTRS{idProduct}=="0536", MODE:="0666", OWNER:="root", GROUP:="video", SYMLINK+="Astra+_rgb"
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2bc5", ATTRS{idProduct}=="0537", MODE:="0666", OWNER:="root", GROUP:="video", SYMLINK+="Astra+s_rgb"
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2bc5", ATTRS{idProduct}=="0660", MODE:="0666", OWNER:="root", GROUP:="video", SYMLINK+="AstraII"
|
||||||
Regular → Executable
Executable
+19
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Check if user is root/running with sudo
|
||||||
|
if [ `whoami` != root ]; then
|
||||||
|
echo Please run this script with sudo
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
ORIG_PATH=`pwd`
|
||||||
|
cd `dirname $0`
|
||||||
|
SCRIPT_PATH=`pwd`
|
||||||
|
cd $ORIG_PATH
|
||||||
|
|
||||||
|
if [ "`uname -s`" != "Darwin" ]; then
|
||||||
|
# Install UDEV rules for USB device
|
||||||
|
cp ${SCRIPT_PATH}/99-obsensor-libusb.rules /etc/udev/rules.d/99-obsensor-libusb.rules
|
||||||
|
echo "usb rules file install at /etc/udev/rules.d/99-obsensor-libusb.rules"
|
||||||
|
fi
|
||||||
|
echo "exit"
|
||||||
Regular → Executable
Reference in New Issue
Block a user