base-files: add a hint in sysupgrade that shows what to do when the image metadata check fails

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2016-11-26 18:43:59 +01:00
parent 377eac0ceb
commit 81b5e8e5d2

View file

@ -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