Skip to content

Commit

Permalink
linux: setup panda + jungle udev rules (commaai#33241)
Browse files Browse the repository at this point in the history
* add rules

* allow failure on docker
  • Loading branch information
maxime-desroches authored Aug 9, 2024
1 parent a8c0c15 commit 2ff051b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tools/install_ubuntu_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,23 @@ if [ -f "/etc/os-release" ]; then
if [[ "$INSTALL_EXTRA_PACKAGES" == "yes" ]]; then
install_extra_packages
fi

if [[ -d "/etc/udev/rules.d/" ]]; then
# Setup panda udev rules
$SUDO tee /etc/udev/rules.d/12-panda_jungle.rules > /dev/null <<EOF
SUBSYSTEM=="usb", ATTRS{idVendor}=="bbaa", ATTRS{idProduct}=="ddcf", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="bbaa", ATTRS{idProduct}=="ddef", MODE="0666"
EOF

# Setup jungle udev rules
$SUDO tee /etc/udev/rules.d/11-panda.rules > /dev/null <<EOF
SUBSYSTEM=="usb", ATTRS{idVendor}=="bbaa", ATTRS{idProduct}=="ddcc", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="bbaa", ATTRS{idProduct}=="ddee", MODE="0666"
EOF

$SUDO udevadm control --reload-rules && $SUDO udevadm trigger || true
fi

else
echo "No /etc/os-release in the system. Make sure you're running on Ubuntu, or similar."
exit 1
Expand Down

0 comments on commit 2ff051b

Please sign in to comment.