[U-Boot] tftp command return value

l3iggs . l3iggs at live.com
Mon Jun 2 06:32:47 CEST 2014


Hello,

I'd like to test if a file  on my TFTP server exists. I would expect that using 'if tftp filename.ext; then echo exists; else echo doesnt; fi' woudl work here. However, It always shows that the file exists. I expect that others want to do the same thing because grep -r "if tftp" include/configs/ gives 15 hists. 

'test -e tftp filename.ext` does not work either.

Does anyone have a solution for this?

Best,
l3iggs 		 	   		  


More information about the U-Boot mailing list