fix small trx_check bug in mtd

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2455 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2005-11-12 21:21:27 +00:00
parent eabcac18ac
commit e5e0cc553d
1 changed files with 1 additions and 1 deletions

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");