diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-01-26 20:35:37 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-01-26 20:35:37 +0000 |
commit | 4215ce81ce33167bb35da877503f4efed91ac92c (patch) | |
tree | 98addb42db7d6648f14e320f41b3707c15e6fc2f | |
parent | e16cdee5c8b046fe9e891ce0e19fd7c29dfd5bca (diff) | |
download | master-187ad058-4215ce81ce33167bb35da877503f4efed91ac92c.tar.gz master-187ad058-4215ce81ce33167bb35da877503f4efed91ac92c.tar.bz2 master-187ad058-4215ce81ce33167bb35da877503f4efed91ac92c.zip |
package/base-files: add get_magic_long() to common upgrade script
Patch-by: Mark Mentovai <mark@moxienet.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25117 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/base-files/Makefile | 2 | ||||
-rw-r--r-- | package/base-files/files/lib/upgrade/common.sh | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 2ef88dbb74..f5d80a4040 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=base-files -PKG_RELEASE:=64 +PKG_RELEASE:=65 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ PKG_BUILD_DEPENDS:=opkg/host 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 } |