diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-11-12 21:21:27 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-11-12 21:21:27 +0000 |
commit | c80b7033d59f6ee38ca209eacedd9d0b20c5b1b8 (patch) | |
tree | 03678ebff692715d44928e2bab7355c30d579492 /openwrt/package/mtd/mtd.c | |
parent | 01e335a5ba5666f3845b60bfa515655632fc4572 (diff) | |
download | mtk-20170518-c80b7033d59f6ee38ca209eacedd9d0b20c5b1b8.zip mtk-20170518-c80b7033d59f6ee38ca209eacedd9d0b20c5b1b8.tar.gz mtk-20170518-c80b7033d59f6ee38ca209eacedd9d0b20c5b1b8.tar.bz2 |
fix small trx_check bug in mtd
SVN-Revision: 2455
Diffstat (limited to 'openwrt/package/mtd/mtd.c')
-rw-r--r-- | openwrt/package/mtd/mtd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/mtd/mtd.c b/openwrt/package/mtd/mtd.c index 45f1308..06d765c 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"); |