summaryrefslogtreecommitdiff
path: root/package/mtd/mtd.c
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-12 21:21:27 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-12 21:21:27 +0000
commita7228a143bcbdf078b4702979d225ad47caa53db (patch)
tree3c0376d93c42ca29fb335dec588e6ca91a52d246 /package/mtd/mtd.c
parentdf6f2d9057fde5b572db07c879c3f81cf65a5cca (diff)
fix small trx_check bug in mtd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2455 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mtd/mtd.c')
-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");