This commit is contained in:
Brad Stein 2025-06-06 02:01:30 -05:00
parent 17358e6367
commit 4926b8d169

View File

@ -7,7 +7,7 @@ mountpoint -q /sys/kernel/config || mount -t configfs configfs /sys/kernel/confi
G=/sys/kernel/config/usb_gadget/navka
if [[ -d $G ]]; then
echo "" >"$G/UDC" || true
echo "" >"$G/UDC" 2>/dev/null || true
find "$G/configs" -type l -delete || true
rmdir "$G/functions/"* 2>/dev/null || true
rmdir "$G" 2>/dev/null || true