私はubootとtftpプログラミングの初心者です
このURLに基づいて、このif
ようなステートメントを作成する方法がありますif imi $addr; then echo Image OK; else echo Image corrupted!!; fi
これが私の「if」です:
=> setenv a true
=> printenv a
a=true
=> setenv b true
=> printenv b
b=true
=> if a b; then echo 'same';fi
Unknown command 'a' - try 'help'
=> if $a $b; then echo 'same';fi
Unknown command 'true' - try 'help'
=> if ${a} ${b}; then echo 'same';fi
Unknown command 'true' - try 'help'
=>