projects
/
openwrt
/
staging
/
neocturne.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
377eac0
)
base-files: add a hint in sysupgrade that shows what to do when the image metadata...
author
Felix Fietkau
<nbd@nbd.name>
Sat, 26 Nov 2016 17:43:59 +0000
(18:43 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Sun, 4 Dec 2016 10:41:49 +0000
(11:41 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/base-files/files/lib/upgrade/fwtool.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/upgrade/fwtool.sh
b/package/base-files/files/lib/upgrade/fwtool.sh
index 984c173097e3882e791ecdc5008a46943a128f45..49f02b7bd9ed735a43a487ea2d7d306a604be6c0 100644
(file)
--- 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