[U-Boot] u-boot script "test"

Sridhar Addagada sridhar_a at yahoo.com
Tue Jan 24 10:07:27 CET 2012


What is the behavior of test command when the variable is not present in the uboot env

set x
if test $x = 1; then echo "Yes"; else echo "No"; fi

in the above case I get Yes echoed back.

Is there any way to test the presence of a variable in uboot script?

Thanks
Sridhar


More information about the U-Boot mailing list