From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iVxRK-0006aL-Mz for oss-tools@pengutronix.de; Sat, 16 Nov 2019 13:44:35 +0100 Received: by mail-wr1-x441.google.com with SMTP id f2so13871061wrs.11 for ; Sat, 16 Nov 2019 04:44:34 -0800 (PST) Received: from [192.168.0.87] (HSI-KBW-109-192-080-035.hsi6.kabel-badenwuerttemberg.de. [109.192.80.35]) by smtp.gmail.com with ESMTPSA id a2sm11716842wrt.79.2019.11.16.04.44.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Nov 2019 04:44:32 -0800 (PST) Message-ID: <1573908272.2548.2.camel@googlemail.com> From: Christoph Fritz Date: Sat, 16 Nov 2019 13:44:32 +0100 Mime-Version: 1.0 Subject: [OSS-Tools] [PATCH dt-utils] barebox-mark-successful-boot: adopt naming from barebox List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: chf.fritz@googlemail.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: oss-tools-bounces@pengutronix.de Sender: "OSS-Tools" To: oss-tools@pengutronix.de This patch is adopting current barebox default naming scheme. Signed-off-by: Christoph Fritz --- 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