From f86a7052504ee54ab98fa82efcba60a6b7bf2395 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Mon, 12 Oct 2020 08:26:18 +0200 Subject: sandbox: dts: include state node by default For testing barebox-state, it would be nice to have a state pre-configured out-of-the-box. Add one to sandbox.dts. Because the barebox message on an non-configured state can looks quite scary, add an init script that tells the user that all is well. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- arch/sandbox/board/env/init/state | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 arch/sandbox/board/env/init/state (limited to 'arch/sandbox/board') diff --git a/arch/sandbox/board/env/init/state b/arch/sandbox/board/env/init/state new file mode 100644 index 0000000000..0b8e40409f --- /dev/null +++ b/arch/sandbox/board/env/init/state @@ -0,0 +1,12 @@ +if [ "x$state.dirty" != "x1" -o $global.system.reset != "POR" ]; then + exit +fi + +source /env/data/ansi-colors + +echo -e $CYAN +echo "******************************************************************" +echo "*** Inconsistent barebox state buckets detected on first boot ***" +echo "*** barebox will repair them on next shutdown ***" +echo "*****************************************************************" +echo -e -n $NC -- cgit v1.2.3