From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 27 Jul 2020 09:33:24 -0400 Subject: [RESEND PATCH v5 1/4] cmd: env: add option for quiet output on env info In-Reply-To: <20200619120337.17042-2-patrick.delaunay@st.com> References: <20200619120337.17042-1-patrick.delaunay@st.com> <20200619120337.17042-2-patrick.delaunay@st.com> Message-ID: <20200727133324.GJ6965@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jun 19, 2020 at 02:03:34PM +0200, Patrick Delaunay wrote: > The "env info" can be use for test with -d and -p parameter, > in scripting case the output of the command is not needed. > > This patch allows to deactivate this output with a new option "-q". > > For example, we can save the environment if default > environment is used and persistent storage is managed with: > if env info -p -d -q; then env save; fi > > Without the quiet option, I have the unnecessary traces > First boot: > Default environment is used > Environment can be persisted > Saving Environment to EXT4... File System is consistent > > Next boot: > Environment was loaded from persistent storage > Environment can be persisted > > Signed-off-by: Patrick Delaunay > Reviewed-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: