From 180bdbb3c9b6c2d73404b35491b8ceadfbd11321 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 20 Aug 2021 11:35:48 +0200 Subject: [PATCH] stop getty@ttyGS0.service so we can remove gadget --- usb-gadget-stop.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usb-gadget-stop.sh b/usb-gadget-stop.sh index da1e989..d9d9b7a 100755 --- a/usb-gadget-stop.sh +++ b/usb-gadget-stop.sh @@ -1,4 +1,7 @@ #!/bin/bash + +systemctl stop getty@ttyGS0.service + cd /sys/kernel/config/usb_gadget/g1 echo '' > UDC find configs -type l -exec rm -v {} \; -- 2.20.1