Re: [U-Boot] [PATCH V4 02/12] fs: implement infrastructure for an 'exists' function

2014-02-04 Thread Tom Rini
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 ${

[U-Boot] [PATCH V4 02/12] fs: implement infrastructure for an 'exists' function

2014-02-03 Thread Stephen Warren
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