package/base-files: add get_magic_long() to common upgrade script

Patch-by: Mark Mentovai <mark@moxienet.com>

SVN-Revision: 25117
master
Gabor Juhos 14 years ago
parent 4e369e5378
commit 25feec0c9c
  1. 2
      package/base-files/Makefile
  2. 4
      package/base-files/files/lib/upgrade/common.sh

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=base-files PKG_NAME:=base-files
PKG_RELEASE:=64 PKG_RELEASE:=65
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=opkg/host PKG_BUILD_DEPENDS:=opkg/host

@ -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_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() { refresh_mtd_partitions() {
mtd refresh rootfs mtd refresh rootfs
} }

Loading…
Cancel
Save