Closed mgrouch closed 6 months ago
not so:
sudo sed -i '/dtoverlay=dwc2*/d' /boot/config.txt
sudo sed -i '$a\dtoverlay=dwc2,dr_mode=host' /boot/config.txt
that should delete any entry already in there
then append a new one to the end ($a
)
It seems the script no longer adds
dtoverlay=dwc2,dr_mode=host
into /boot/config.txt
new OS has been change to /boot/firmware/config.txt so, just modify to:
sudo sh -c "sudo sed -i '/dtoverlay=dwc2*/d' /boot/firmware/config.txt
sudo sh -c "sudo sed -i '\$a\dtoverlay=dwc2,dr_mode=host' /boot/firmware/config.txt
and do remember reboot your Raspberry Pi to take effect
It seems the script no longer adds
dtoverlay=dwc2,dr_mode=host
into /boot/config.txt