Skip to content

Commit cc487e1

Browse files
committed
This could fail if the device is already enabled
1 parent e5fa15d commit cc487e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/radxa-otgutils

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ start()
9696
echo "No USB Device Controller was detected. Did you set your OTG port to host mode?"
9797
exit 1
9898
fi
99-
echo "$UDC" > "/sys/kernel/config/usb_gadget/radxa-otgutils/UDC"
99+
echo "$UDC" > "/sys/kernel/config/usb_gadget/radxa-otgutils/UDC" || true
100100
}
101101

102102
stop()

0 commit comments

Comments
 (0)