From 7a08220ae19e1d6930c041c8142f7ce4e0f874df Mon Sep 17 00:00:00 2001 From: Marco Nelissen Date: Tue, 27 Aug 2024 16:44:50 -0700 Subject: [PATCH] setup: handle bookwork config.txt Bookworm config.txt includes a cm5 specific entry that matched the search pattern for the dwc2 overlay, so setup wouldn't add it if needed. --- setup/pi/setup-teslausb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/pi/setup-teslausb b/setup/pi/setup-teslausb index 45fef0bd..960e7964 100755 --- a/setup/pi/setup-teslausb +++ b/setup/pi/setup-teslausb @@ -862,7 +862,7 @@ done # Update config.txt if needed if [ -f "$PICONFIG_PATH" ] then - if ! grep -q 'dtoverlay=dwc2' "$PICONFIG_PATH" + if ! grep -q 'dtoverlay=dwc2$' "$PICONFIG_PATH" then echo -e "dtoverlay=dwc2\n" >> "$PICONFIG_PATH" setup_progress "rebooting to apply dwc2 overlay change"