summaryrefslogtreecommitdiffstats
path: root/target/utils/src
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-13 12:38:47 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-13 12:38:47 +0000
commit7f968bd4fa6e3ef7e8860b92ee95fe579962e620 (patch)
tree38337479ed93f1fb77f613988f56217cd7d04dd8 /target/utils/src
parentf09ef4cb9ab33af4c04d57807d17a90b7c9b0bd5 (diff)
add updates from whiterussian to head
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1626 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/utils/src')
-rw-r--r--target/utils/src/addpattern.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/target/utils/src/addpattern.c b/target/utils/src/addpattern.c
index 084ecf29a..5298f7b00 100644
--- a/target/utils/src/addpattern.c
+++ b/target/utils/src/addpattern.c
@@ -76,7 +76,7 @@ void usage(void) __attribute__ (( __noreturn__ ));
void usage(void)
{
- fprintf(stderr, "Usage: addpattern [-i trxfile] [-o binfile] [-p pattern] [-g] [-b] [-v v#.#.#] [-{0|1|2}]\n");
+ fprintf(stderr, "Usage: addpattern [-i trxfile] [-o binfile] [-p pattern] [-g] [-b] [-v v#.#.#] [-{0|1|2|4}]\n");
exit(EXIT_FAILURE);
}
@@ -136,6 +136,11 @@ int main(int argc, char **argv)
hdr->flags |= SUPPORT_INTEL_FLASH;
hdr->flags |= SUPPORT_5325E_SWITCH;
break;
+ case '4':
+ /* V4 firmware sets the flags to 0x1f */
+ hdr->hw_ver = 1;
+ hdr->flags = 0x1f;
+ break;
default:
usage();