stop getty@ttyGS0.service so we can remove gadget master
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 20 Aug 2021 09:35:48 +0000 (11:35 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 20 Aug 2021 09:35:48 +0000 (11:35 +0200)
usb-gadget-stop.sh

index da1e989..d9d9b7a 100755 (executable)
@@ -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 {} \;