set_adb.sh: restart adbd, re-running it unbound the USB gadget (#689)

This commit is contained in:
Adeeb Shihadeh
2026-10-22 13:27:35 -07:00
committed by GitHub
parent 8a5d8f661e
commit 9cc2d249e0
+2 -1
View File
@@ -54,7 +54,8 @@ if [ -f "$ADB_PARAM" ] && [ "$(< $ADB_PARAM)" == "1" ]; then
echo "Enabling ADB"
setup
systemctl start adbd
# setup unbinds the gadget if it's already bound, and adbd only binds it when it starts
systemctl restart adbd
else
echo "Disabling ADB"