On Thu, Mar 27, 2008 at 05:03:32PM -0500, Kevin Holland wrote: > Hi all, > > I wrote a script to download files to a flash device and > calculate/verify checksums. I found that depending on the value of the > cksum this part of my code will fail and give an error of sh: 2173165883 > out of range. > > if [ $CKSUM2 -eq $CKSUM ]; then > echo "Done" > exit 0 > else > echo "Check Sum Failed" > exit 1 > fi > > I enabled 64 bit math in busybox to see if this would help but it > didn't, is this a 32 bit signed integer problem? Is there a way to fix > it?
Use a string comparison, i.e., change "-eq" to "=" -- David N. Lombard, Intel, Irvine, CA I do not speak for Intel Corporation; all comments are strictly my own. _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
