ramips: use get_magic_long in sysupgrade image check
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 33842
This commit is contained in:
parent
a67d5fd24f
commit
e962c16a88
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ RAMFS_COPY_DATA=/lib/ramips.sh
|
||||||
|
|
||||||
platform_check_image() {
|
platform_check_image() {
|
||||||
local board=$(ramips_board_name)
|
local board=$(ramips_board_name)
|
||||||
local magic="$(get_magic_word "$1")"
|
local magic="$(get_magic_long "$1")"
|
||||||
|
|
||||||
[ "$ARGC" -gt 1 ] && return 1
|
[ "$ARGC" -gt 1 ] && return 1
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ platform_check_image() {
|
||||||
whr-g300n |\
|
whr-g300n |\
|
||||||
ur-336un |\
|
ur-336un |\
|
||||||
wr512-3gn)
|
wr512-3gn)
|
||||||
[ "$magic" != "2705" ] && {
|
[ "$magic" != "27051956" ] && {
|
||||||
echo "Invalid image type."
|
echo "Invalid image type."
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue