From: Felix Fietkau Date: Sat, 26 Nov 2016 17:43:59 +0000 (+0100) Subject: base-files: add a hint in sysupgrade that shows what to do when the image metadata... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=81b5e8e5d21437a65ebfb98112a0709f4020af36;p=openwrt%2Fstaging%2Fneocturne.git base-files: add a hint in sysupgrade that shows what to do when the image metadata check fails Signed-off-by: Felix Fietkau --- diff --git a/package/base-files/files/lib/upgrade/fwtool.sh b/package/base-files/files/lib/upgrade/fwtool.sh index 984c173097..49f02b7bd9 100644 --- a/package/base-files/files/lib/upgrade/fwtool.sh +++ b/package/base-files/files/lib/upgrade/fwtool.sh @@ -9,6 +9,9 @@ fwtool_check_image() { if ! fwtool -q -i /tmp/sysupgrade.meta "$1"; then echo "Image metadata not found" + [ "$REQUIRE_IMAGE_METADATA" = 1 -a "$FORCE" != 1 ] && { + echo "Use sysupgrade -F to override this check when downgrading or flashing to vendor firmware" + } [ "$REQUIRE_IMAGE_METADATA" = 1 ] && return 1 return 0 fi