X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/7f968bd4fa6e3ef7e8860b92ee95fe579962e620..ca2745c2818a64722ec0b159cd2a08eaf680652a:/target/utils/src/addpattern.c diff --git a/target/utils/src/addpattern.c b/target/utils/src/addpattern.c index 5298f7b00..9962a6792 100644 --- a/target/utils/src/addpattern.c +++ b/target/utils/src/addpattern.c @@ -104,7 +104,7 @@ int main(int argc, char **argv) hdr = (struct code_header *) buf; memset(hdr, 0, sizeof(struct code_header)); - while ((c = getopt(argc, argv, "i:o:p:gbv:012")) != -1) { + while ((c = getopt(argc, argv, "i:o:p:gbv:0124")) != -1) { switch (c) { case 'i': ifn = optarg; @@ -138,7 +138,7 @@ int main(int argc, char **argv) break; case '4': /* V4 firmware sets the flags to 0x1f */ - hdr->hw_ver = 1; + hdr->hw_ver = 0; hdr->flags = 0x1f; break;