Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33842
platform_check_image() {
local board=$(ramips_board_name)
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
[ "$ARGC" -gt 1 ] && return 1
whr-g300n |\
ur-336un |\
wr512-3gn)
whr-g300n |\
ur-336un |\
wr512-3gn)
- [ "$magic" != "2705" ] && {
+ [ "$magic" != "27051956" ] && {
echo "Invalid image type."
return 1
}
echo "Invalid image type."
return 1
}