1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-06 03:01:18 +02:00

fix small trx_check bug in mtd

SVN-Revision: 2455
This commit is contained in:
Felix Fietkau 2005-11-12 21:21:27 +00:00
parent 01e335a5ba
commit c80b7033d5

@ -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");