aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-11-12 21:21:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-11-12 21:21:27 +0000
commita7bb96782b43c7b0c978016363fa3df5c0befd4f (patch)
treefc0d9360f746a23f86d91a4ac19238941b537fd9
parent9478a49bc24c7ab3c634ef93d45a9be49a62937b (diff)
downloadupstream-a7bb96782b43c7b0c978016363fa3df5c0befd4f.tar.gz
upstream-a7bb96782b43c7b0c978016363fa3df5c0befd4f.tar.bz2
upstream-a7bb96782b43c7b0c978016363fa3df5c0befd4f.zip
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 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");