int main (int argc, char **argv)
{
- int ch, i, boot, imagefd = 0, force, unlocked;
+ int ch, i, boot, imagefd = 0, force, unlocked, ret = 0;
char *erase[MAX_ARGS], *device = NULL;
char *fis_layout = NULL;
size_t offset = 0, data_size = 0, part_offset = 0, dump_len = 0;
mtd_unlock(device);
break;
case CMD_VERIFY:
- mtd_verify(device, imagefile);
+ ret |= mtd_verify(device, imagefile);
break;
case CMD_DUMP:
mtd_dump(device, offset, dump_len);
if (boot)
do_reboot();
- return 0;
+ return ret;
}