mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 05:11:46 +02:00
ramips: use get_magic_long in sysupgrade image check
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33842 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c34b71fa3d
commit
b929e2ef3f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user