From: Christoph Fritz <chf.fritz@googlemail.com>
To: oss-tools@pengutronix.de
Subject: [OSS-Tools] [PATCH dt-utils] barebox-mark-successful-boot: adopt naming from barebox
Date: Sat, 16 Nov 2019 13:44:32 +0100 [thread overview]
Message-ID: <1573908272.2548.2.camel@googlemail.com> (raw)
This patch is adopting current barebox default naming scheme.
Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
---
scripts/barebox-mark-successful-boot.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/barebox-mark-successful-boot.sh b/scripts/barebox-mark-successful-boot.sh
index 3120f57..9286a63 100644
--- a/scripts/barebox-mark-successful-boot.sh
+++ b/scripts/barebox-mark-successful-boot.sh
@@ -3,12 +3,12 @@
DEFAULT_REMAINING_ATTEMPTS=3
DEFAULT_PRIORITY=20
-system=$(sed /proc/cmdline -ne "s/\(^\|.* \)bootstate.active=\([^ ]*\).*/\2/p")
+system=$(sed /proc/cmdline -ne "s/\(^\|.* \)bootchooser.active=\([^ ]*\).*/\2/p")
if [ -z "${system}" ]; then
echo "unable to detect system partition" >&2
exit 1
fi
-barebox-state -n /state \
+barebox-state -n state \
-s "bootstate.${system}.remaining_attempts=${DEFAULT_REMAINING_ATTEMPTS}" \
-s "bootstate.${system}.priority=${DEFAULT_PRIORITY}"
--
2.20.1
_______________________________________________
OSS-Tools mailing list
OSS-Tools@pengutronix.de
next reply other threads:[~2019-11-16 12:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-16 12:44 Christoph Fritz [this message]
2019-12-11 11:25 ` Enrico Joerns
2019-12-12 11:50 ` Roland Hieber
2019-12-12 12:07 ` Roland Hieber
2019-12-13 12:23 ` Christoph Fritz
2020-01-19 23:19 ` Roland Hieber
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=1573908272.2548.2.camel@googlemail.com \
--to=chf.fritz@googlemail.com \
--cc=oss-tools@pengutronix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox