X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/a519eca7833d8a0bdc4646def0b33097d44b39ef..358935b6269b6f0392c87d8653541ab721cc0e70:/firmware.c diff --git a/firmware.c b/firmware.c index 40c2b56..cd7927b 100644 --- a/firmware.c +++ b/firmware.c @@ -8,7 +8,7 @@ #include #include #include "rsb-crc.h" -#include "rsb-lz.h" +#include "extract.h" #define FINDSTR(addr, str) (!strncmp((char*)addr, str, strlen(str))) @@ -423,6 +423,7 @@ int main(int argc, char **argv) ret = check_crc(fw, statbuf.st_size); if ((ret != 0) && (!update_crc)) { fprintf(stderr,"Checksum incorrect, aborting...\n"); + exit(1); } if (patch_fw) { @@ -461,7 +462,7 @@ int main(int argc, char **argv) } if (extract) { - search_lz_sections(fw, statbuf.st_size - 4); + extract_files(fw, statbuf.st_size - 4); } if (update_crc || patch_fw || patch_bd) {