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.lede-project.org./?a=commitdiff_plain;h=c80b7033d59f6ee38ca209eacedd9d0b20c5b1b8;p=openwrt%2Fstaging%2Frmilecki.git fix small trx_check bug in mtd SVN-Revision: 2455 --- diff --git a/openwrt/package/mtd/mtd.c b/openwrt/package/mtd/mtd.c index 45f13084146..06d765ce8be 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");