From f5b5cd596b08837dbd5fb8cee603eb671f9d6525 Mon Sep 17 00:00:00 2001 From: Bastien Dejean Date: Tue, 7 May 2024 09:23:14 +0200 Subject: [PATCH] Remove the gadget after disabling it --- scripts/usb-disable.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/usb-disable.sh b/scripts/usb-disable.sh index f422b02..360eaca 100755 --- a/scripts/usb-disable.sh +++ b/scripts/usb-disable.sh @@ -40,6 +40,13 @@ mtk() { mkdir -p "$DIR"/strings/0x409 echo "" > "$DIR"/UDC + + rm "$DIR"/configs/c.1/mass_storage.0 + rmdir "$DIR"/configs/c.1/strings/0x409 + rmdir "$DIR"/configs/c.1 + rmdir "$DIR"/functions/mass_storage.0 + rmdir "$DIR"/strings/0x409 + rmdir "$DIR" } case "$PLATFORM" in -- 2.51.2