X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3e2d3da760137386b4051b13125e36d25de5aff5..78d42ea9cff1e71477a9427ca0799fb6ad5d5d37:/target/linux/orion/base-files/lib/upgrade/platform.sh diff --git a/target/linux/orion/base-files/lib/upgrade/platform.sh b/target/linux/orion/base-files/lib/upgrade/platform.sh index def241d4b..fdd26c517 100644 --- a/target/linux/orion/base-files/lib/upgrade/platform.sh +++ b/target/linux/orion/base-files/lib/upgrade/platform.sh @@ -9,13 +9,21 @@ platform_check_image() { case "${hardware}" in # hardware with padded uImage + padded rootfs - 'Netgear WNR854T' | 'Linksys WRT350N v2') + 'Linksys WRT350N v2') [ "${magic}" != '2705' ] && { echo "Invalid image type ${magic}." return 1 } return 0 ;; + # Netgear WNR854T has extra header before uImage + 'Netgear WNR854T') + [ "${magic}" != '8519' ] && { + echo "Invalid image type ${magic}." + return 1 + } + return 0 + ;; esac echo "Sysupgrade is not yet supported on ${hardware}."