We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de66b5c commit 0cabd7bCopy full SHA for 0cabd7b
src/radxa-otgutils
@@ -73,7 +73,8 @@ start()
73
;;
74
esac
75
76
- local UDC=$(ls /sys/class/udc/ | head -1)
+ local UDC=
77
+ UDC="$(basename "$(find /sys/class/udc -maxdepth 1 -mindepth 1 | sort | head -1)")"
78
if [ -z "$UDC" ];
79
then
80
echo "No USB Device Controller was detected. Did you set your OTG port to host mode?"
0 commit comments