From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 10 Apr 2015 14:49:04 -0400 Subject: [U-Boot] [PATCH] common, ubi: use positive return values for ubi check In-Reply-To: <1428657943-5522-1-git-send-email-stefan@agner.ch> References: <1428657943-5522-1-git-send-email-stefan@agner.ch> Message-ID: <20150410184904.GC9524@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, Apr 10, 2015 at 11:25:43AM +0200, Stefan Agner wrote: > The ubi check command is expected to not fail and just check whether > a volume exist or not. Currently, when a volume does not exist, the > command fails which leads to an error: > "exit not allowed from main input shell." > > Use 1 to indicate that a volume does not exist. This allows to use > ubi check in an if statement, e.g. > if ubi check rootfs; then; echo "exists"; else; echo "not there"; fi Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: