From 7589a1ace65828627a4b0f0dc2b4d114779a424d Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 12 Nov 2005 21:21:27 +0000 Subject: fix small trx_check bug in mtd git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2455 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/mtd/mtd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openwrt') 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"); -- cgit v1.2.3