jenkins: reset USB (#29155)

* jenkins: reset USB

* fix non aux
old-commit-hash: 036888ec15388cacca49302c6459270fa81930aa
This commit is contained in:
Adeeb Shihadeh
2023-07-26 15:11:20 -07:00
committed by GitHub
parent fff24a37bc
commit 36846e5374
Vendored
+8
View File
@@ -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