mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-17 15:34:43 +02:00
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
This commit is contained in:
parent
f8a8be82d9
commit
3ee7252632
@ -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:=43.12
|
PKG_RELEASE:=43.14
|
||||||
|
|
||||||
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…
x
Reference in New Issue
Block a user