We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c11371 commit 81c99beCopy full SHA for 81c99be
1 file changed
install.sh
@@ -166,7 +166,8 @@ fi
166
# on Pi Zero / Zero 2 W.
167
if ! awk '/^\[cm[0-9]/{skip=1;next} /^\[/{skip=0} !skip && /^dtoverlay=dwc2$/{found=1;exit} END{exit !found}' "$BOOT_CONFIG" 2>/dev/null; then
168
info "Enabling USB OTG overlay in $BOOT_CONFIG..."
169
- ensure_boot_config_line "dtoverlay=dwc2"
+ echo "dtoverlay=dwc2" | sudo tee -a "$BOOT_CONFIG" >/dev/null
170
+ NEED_REBOOT=1
171
fi
172
BOOT_CMDLINE="/boot/firmware/cmdline.txt"
173
[ -f "$BOOT_CMDLINE" ] || BOOT_CMDLINE="/boot/cmdline.txt"
0 commit comments