aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-01-26 20:35:37 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-01-26 20:35:37 +0000
commit25feec0c9c6a2bd9fe4c20e3cfe55e47c3d4bfaf (patch)
tree5a3b8815963cb7f1f207578b73c40937993ecdcc /package/base-files/files/lib
parent4e369e5378cad1ced8bb69196ceec72b8f21683c (diff)
downloadupstream-25feec0c9c6a2bd9fe4c20e3cfe55e47c3d4bfaf.tar.gz
upstream-25feec0c9c6a2bd9fe4c20e3cfe55e47c3d4bfaf.tar.bz2
upstream-25feec0c9c6a2bd9fe4c20e3cfe55e47c3d4bfaf.zip
package/base-files: add get_magic_long() to common upgrade script
Patch-by: Mark Mentovai <mark@moxienet.com> SVN-Revision: 25117
Diffstat (limited to 'package/base-files/files/lib')
-rw-r--r--package/base-files/files/lib/upgrade/common.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh
index 970016e7ba..bf9c40d295 100644
--- a/package/base-files/files/lib/upgrade/common.sh
+++ b/package/base-files/files/lib/upgrade/common.sh
@@ -130,6 +130,10 @@ get_magic_word() {
get_image "$@" | dd bs=2 count=1 2>/dev/null | hexdump -v -n 2 -e '1/1 "%02x"'
}
+get_magic_long() {
+ get_image "$@" | dd bs=4 count=1 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"'
+}
+
refresh_mtd_partitions() {
mtd refresh rootfs
}