From: Tom Rini Date: Tue, 4 Feb 2014 17:06:32 -0500 Subject: [U-Boot] [PATCH V4 02/12] fs: implement infrastructure for an 'exists' function In-Reply-To: <1391458870-17930-2-git-send-email-swarren@wwwdotorg.org> References: <1391458870-17930-1-git-send-email-swarren@wwwdotorg.org> <1391458870-17930-2-git-send-email-swarren@wwwdotorg.org> Message-ID: <20140204220632.GR7049@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 Mon, Feb 03, 2014 at 01:21:00PM -0700, Stephen Warren wrote: > From: Stephen Warren > > This could be used in scripts such as: > > if test -e mmc 0:1 /boot/boot.scr; then > load mmc 0:1 ${scriptaddr} /boot/boot.scr > source ${scriptaddr} > fi > > rather than: > > if load mmc 0:1 ${scriptaddr} /boot/boot.scr; then > source ${scriptaddr} > fi > > This prevents errors being printed by attempts to load non-existent > files, which can be important when checking for a large set of files, > such as /boot/boot.scr.uimg, /boot/boot.scr, /boot/extlinux.conf, > /boot.scr.uimg, /boot.scr, /extlinux.conf. > > Signed-off-by: Stephen Warren > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: