summaryrefslogtreecommitdiff
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
commit7589a1ace65828627a4b0f0dc2b4d114779a424d (patch)
treefc0d9360f746a23f86d91a4ac19238941b537fd9
parent1b3a3e65f84d738b7ab47da8f242164ff526c45a (diff)
fix small trx_check bug in mtd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2455 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--openwrt/package/mtd/mtd.c2
1 files changed, 1 insertions, 1 deletions
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");