X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f944258e22201197fb4e7c7b731d98527e96dfa9..263c50bd9e6259488cb50d26e1d543fcb31e8ae6:/openwrt/package/mtd/mtd.c diff --git a/openwrt/package/mtd/mtd.c b/openwrt/package/mtd/mtd.c index 45f130841..06d765ce8 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");