From 81b5e8e5d21437a65ebfb98112a0709f4020af36 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 26 Nov 2016 18:43:59 +0100 Subject: base-files: add a hint in sysupgrade that shows what to do when the image metadata check fails Signed-off-by: Felix Fietkau --- package/base-files/files/lib/upgrade/fwtool.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package/base-files/files') 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 -- cgit v1.2.3