1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-29 18:36:14 +02:00

fix small trx_check bug in mtd

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2455 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2005-11-12 21:21:27 +00:00
parent 1b3a3e65f8
commit 7589a1ace6

View File

@ -360,7 +360,7 @@ int main (int argc, char **argv)
} }
} }
if (system("grep Broadcom /proc/cpuinfo >&- >&-") != 0) { if (system("grep Broadcom /proc/cpuinfo >&- >&-") == 0) {
/* check trx file before erasing or writing anything */ /* check trx file before erasing or writing anything */
if (!trx_check(imagefd, device)) { if (!trx_check(imagefd, device)) {
fprintf(stderr, "TRX check failed!\n"); fprintf(stderr, "TRX check failed!\n");