Skip to content

Commit 81c99be

Browse files
committed
fix: more install fixes for gadget modprobing and loading (2)
1 parent 2c11371 commit 81c99be

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ fi
166166
# on Pi Zero / Zero 2 W.
167167
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
168168
info "Enabling USB OTG overlay in $BOOT_CONFIG..."
169-
ensure_boot_config_line "dtoverlay=dwc2"
169+
echo "dtoverlay=dwc2" | sudo tee -a "$BOOT_CONFIG" >/dev/null
170+
NEED_REBOOT=1
170171
fi
171172
BOOT_CMDLINE="/boot/firmware/cmdline.txt"
172173
[ -f "$BOOT_CMDLINE" ] || BOOT_CMDLINE="/boot/cmdline.txt"

0 commit comments

Comments
 (0)