From: Felix Fietkau Date: Sat, 12 Nov 2005 21:21:05 +0000 (+0000) Subject: fix small trx_check bug in mtd X-Git-Tag: whiterussian_rc4~36 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=65cabc68e47b38b100cb9f2ce11881a453e6fca2;p=openwrt%2Fsvn-archive%2Fopenwrt.git fix small trx_check bug in mtd SVN-Revision: 2454 --- diff --git a/openwrt/package/mtd/mtd.c b/openwrt/package/mtd/mtd.c index 45f1308414..06d765ce8b 100644 --- a/openwrt/package/mtd/mtd.c +++ b/openwrt/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");