All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: Tom Rini <trini@konsulko.com>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
	Simon Glass <sjg@chromium.org>
Subject: [u-boot-test-hooks PATCH 3/7] rpi3: Tweak the grep pattern
Date: Sat, 30 Oct 2021 12:25:35 -0600	[thread overview]
Message-ID: <20211030182539.1371361-3-sjg@chromium.org> (raw)
In-Reply-To: <20211030182539.1371361-1-sjg@chromium.org>

Just to be safe, check for the pattern only at the start of a line, since
it is possible to add a comment with this in it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 bin/writer.rpi3_mount | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/writer.rpi3_mount b/bin/writer.rpi3_mount
index 7b078a1..97f24a5 100755
--- a/bin/writer.rpi3_mount
+++ b/bin/writer.rpi3_mount
@@ -41,7 +41,7 @@ fi
 
 # Enable the UART and fix the GPU frequency so it works correctly
 sed -i '/enable_uart/c\enable_uart = 1' /media/rpi3_b_boot/config.txt
-if ! grep -q gpu_freq=250 /media/rpi3_b_boot/config.txt; then
+if ! grep -q "^gpu_freq=250" /media/rpi3_b_boot/config.txt; then
     echo 'gpu_freq=250' >>/media/rpi3_b_boot/config.txt
 fi
 
-- 
2.33.1.1089.g2158813163f-goog


  parent reply	other threads:[~2021-10-30 18:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-30 18:25 [u-boot-test-hooks PATCH 1/7] travis-ci: Add qemu_arm_spl board Simon Glass
2021-10-30 18:25 ` [u-boot-test-hooks PATCH 2/7] sdwire: Tidy up the mount script Simon Glass
2021-11-11 17:37   ` Tom Rini
2021-10-30 18:25 ` Simon Glass [this message]
2021-11-11 17:37   ` [u-boot-test-hooks PATCH 3/7] rpi3: Tweak the grep pattern Tom Rini
2021-10-30 18:25 ` [u-boot-test-hooks PATCH 4/7] Add wait_raw_device for common code Simon Glass
2021-11-11 17:37   ` Tom Rini
2021-10-30 18:25 ` [u-boot-test-hooks PATCH 5/7] Update sdwire script to wait for umount Simon Glass
2021-11-11 17:37   ` Tom Rini
2021-10-30 18:25 ` [u-boot-test-hooks PATCH 6/7] kea: Add samus Simon Glass
2021-11-11 17:38   ` Tom Rini
2021-10-30 18:25 ` [u-boot-test-hooks PATCH 7/7] ellesmere: Add qemu rules Simon Glass
2021-10-31 16:57   ` Tom Rini
2021-10-31 18:22     ` Simon Glass
2021-10-31 19:15       ` Tom Rini
2021-11-03 15:23 ` [u-boot-test-hooks PATCH 1/7] travis-ci: Add qemu_arm_spl board Tuomas Tynkkynen
2021-11-11 17:37 ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211030182539.1371361-3-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.