projects
/
openwrt
/
staging
/
dangole.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cb8488
)
base-files: fix sysupgrade get_magic_word() function to return proper values if the...
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 19 Aug 2009 19:12:34 +0000
(19:12 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 19 Aug 2009 19:12:34 +0000
(19:12 +0000)
SVN-Revision: 17319
package/base-files/files/lib/upgrade/common.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/upgrade/common.sh
b/package/base-files/files/lib/upgrade/common.sh
index 06c257b639ffd381db22ae5deecba2408c694fda..ff3012bcc1a2b47e9ded6b420fddc5761c732739 100644
(file)
--- a/
package/base-files/files/lib/upgrade/common.sh
+++ b/
package/base-files/files/lib/upgrade/common.sh
@@
-124,7
+124,7
@@
get_image() { # <source> [ <command> ]
}
get_magic_word() {
- get_image "$@" | dd bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"'
+ get_image "$@" | dd bs=2 count=1 2>/dev/null | hexdump -
v -
n 2 -e '1/1 "%02x"'
}
refresh_mtd_partitions() {