From 55ccc988e214959d77b886f2964adacca4e53a04 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sat, 21 Dec 2024 20:06:26 +0100 Subject: [PATCH] Configure genxnoise_desktop_module as USB gadget --- hwconfig/customize.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hwconfig/customize.sh b/hwconfig/customize.sh index 687b568..73b3485 100755 --- a/hwconfig/customize.sh +++ b/hwconfig/customize.sh @@ -29,5 +29,17 @@ for file in *.override; do fi fi + # Configure genxnoise_desktop_module as USB gadget (as intended by the manufacturer) + case "$file" in + *genxnoise_desktop_module*) + echo "" >> "$name_of_ini_file" + echo "# CAUTION: To prevent hardware damage, DO NOT use the port labeled 'PWR'" >> "$name_of_ini_file" + echo "# (the microUSB port near the edge of the device) when USBGadget is set to 1!" >> "$name_of_ini_file" + echo "# You need to disable USBGadget if you would like to use that port!" >> "$name_of_ini_file" + echo "# See https://github.com/probonopd/MiniDexed/wiki/Hardware#usb-gadget-mode for more information" >> "$name_of_ini_file" + echo "USBGadget=1" >> "$name_of_ini_file" + ;; + esac + echo "Created $name_of_ini_file" done