From: Gabor Juhos Date: Sun, 13 Mar 2011 14:53:57 +0000 (+0000) Subject: backfire: package/base-files: add get_magic_long() to common upgrade script (backport... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=9325c30f116613f9087ac0d0334e86b07a956811 backfire: package/base-files: add get_magic_long() to common upgrade script (backport of r25117) SVN-Revision: 26115 --- diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 390327a9e1..d58e17df62 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:=43.12 +PKG_RELEASE:=43.14 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 }