From 3ee7252632f40c79f0ce3f3bf2bd1a54a6ded357 Mon Sep 17 00:00:00 2001 From: juhosg Date: Sun, 13 Mar 2011 14:53:57 +0000 Subject: [PATCH] backfire: package/base-files: add get_magic_long() to common upgrade script (backport of r25117) git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@26115 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/Makefile | 2 +- package/base-files/files/lib/upgrade/common.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 390327a9e..d58e17df6 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 970016e7b..bf9c40d29 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 } -- 2.35.1