From 9cc2d249e0fc81bb4bf888b8de92be04b985bf1b Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 22 Oct 2026 13:27:35 -0700 Subject: [PATCH] set_adb.sh: restart adbd, re-running it unbound the USB gadget (#689) --- userspace/root/usr/comma/set_adb.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/userspace/root/usr/comma/set_adb.sh b/userspace/root/usr/comma/set_adb.sh index 37bd200..6c708cf 100755 --- a/userspace/root/usr/comma/set_adb.sh +++ b/userspace/root/usr/comma/set_adb.sh @@ -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"