[U-Boot-Users] Conditions in hush

3 Apr
2003
3 Apr
'03
12:50 p.m.
hi
I use u-boot-0.2.0 with hush shell. I'm trying to write a script that check which kernel should be used.
If $runtest ist defined (or equal a specific value) then use kernel1 else use kernel2
I have problem to define the condition. Can anybody help me?
best Bogdan

3 Apr
3 Apr
11:10 a.m.
In message LMELLOOANGIAKFIBMEHNEEAPCAAA.bwoldert@giga-stream.de you wrote:
I use u-boot-0.2.0 with hush shell. I'm trying to write a script that check which kernel should be used.
If $runtest ist defined (or equal a specific value) then use kernel1 else use kernel2
I have problem to define the condition. Can anybody help me?
[untested]
if printenv $runtest then bootm $kernel1 else bootm $kernel2 fi
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Intel told us the Pentium would have "RISK" features...
8069
Age (days ago)
8069
Last active (days ago)
1 comments
2 participants
participants (2)
-
Bogdan Woldert-Jokisz
-
Wolfgang Denk