summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/mtd/mtd.c2
1 files changed, 1 insertions, 1 deletions
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");