From: Felix Fietkau Date: Sat, 12 Nov 2005 21:21:27 +0000 (+0000) Subject: fix small trx_check bug in mtd X-Git-Url: http://git.archive.openwrt.org/?a=commitdiff_plain;h=e5e0cc553dd04b4bbf347b85c1aea4b9f0f83848;p=15.05%2Fopenwrt.git fix small trx_check bug in mtd git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2455 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/mtd/mtd.c b/package/mtd/mtd.c index 45f1308414..06d765ce8b 100644 --- a/package/mtd/mtd.c +++ b/package/mtd/mtd.c @@ -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 */ if (!trx_check(imagefd, device)) { fprintf(stderr, "TRX check failed!\n");