Adding aleksa24 detect for pre-compiled DWC2
This commit is contained in:
+4
-2
@@ -11,8 +11,10 @@ fi
|
||||
|
||||
|
||||
# Is the dwc2 overlay installed? Nothing will work if it isn't.
|
||||
if lsmod | grep -q "dwc2"; then
|
||||
systemd-cat -t gadget.sh -p info echo "DWC2 module loaded, setting up OTG gadget serial and ethernet"
|
||||
if [ -d /sys/class/udc ] && [ -n "$(ls -A /sys/class/udc)" ]; then
|
||||
systemd-cat -t gadget.sh -p info echo "DWC2 precompiled, setting up OTG gadget serial and ethernet"
|
||||
elif lsmod | grep -q "dwc2"; then
|
||||
systemd-cat -t gadget.sh -p info echo "Pre 6.18.39 kernel. DWC2 module loaded, setting up OTG gadget serial and ethernet"
|
||||
else
|
||||
systemd-cat -t gadget.sh -p warning echo "DWC2 module missing. Aborting OTG setup."
|
||||
systemctl disable serial-getty@ttyGS0.service
|
||||
|
||||
Reference in New Issue
Block a user