summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-10-18 07:23:00 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-10-18 07:23:00 +0000
commite962c16a88983eaf6c58a1ea1db14bc3f7825358 (patch)
treea7ce5aba8e203981ed85ec7c6906764b6c9e5153
parenta67d5fd24fa80d3f0989f0e6a3f137b8c18cdc41 (diff)
downloadmtk-20170518-e962c16a88983eaf6c58a1ea1db14bc3f7825358.zip
mtk-20170518-e962c16a88983eaf6c58a1ea1db14bc3f7825358.tar.gz
mtk-20170518-e962c16a88983eaf6c58a1ea1db14bc3f7825358.tar.bz2
ramips: use get_magic_long in sysupgrade image check
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 33842
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 5ebf42a..2857599 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -9,7 +9,7 @@ RAMFS_COPY_DATA=/lib/ramips.sh
platform_check_image() {
local board=$(ramips_board_name)
- local magic="$(get_magic_word "$1")"
+ local magic="$(get_magic_long "$1")"
[ "$ARGC" -gt 1 ] && return 1
@@ -51,7 +51,7 @@ platform_check_image() {
whr-g300n |\
ur-336un |\
wr512-3gn)
- [ "$magic" != "2705" ] && {
+ [ "$magic" != "27051956" ] && {
echo "Invalid image type."
return 1
}