mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-29 14:08:25 +02:00
fix small trx_check bug in mtd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2455 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1b3a3e65f8
commit
7589a1ace6
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user