jenkins: reset USB (#29155)

* jenkins: reset USB

* fix non aux
pull/29157/head
Adeeb Shihadeh 2 years ago committed by GitHub
parent 77babcc60f
commit 036888ec15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      Jenkinsfile

8
Jenkinsfile vendored

@ -25,6 +25,14 @@ if [ -f /TICI ]; then
sudo systemctl start systemd-resolved
sleep 3
fi
# restart aux USB
if [ -e /sys/bus/usb/drivers/hub/3-0:1.0 ]; then
echo "restarting aux usb"
echo "3-0:1.0" | sudo tee /sys/bus/usb/drivers/hub/unbind
sleep 0.5
echo "3-0:1.0" | sudo tee /sys/bus/usb/drivers/hub/bind
fi
fi
if [ -f /data/openpilot/launch_env.sh ]; then
source /data/openpilot/launch_env.sh

Loading…
Cancel
Save