Signed-off-by: Todor Colov <[email protected]>
---
package/base-files/files/lib/upgrade/fwtool.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/base-files/files/lib/upgrade/fwtool.sh
b/package/base-files/files/lib/upgrade/fwtool.sh
index a0b3fb0a04..e4736c06f3 100644
--- a/package/base-files/files/lib/upgrade/fwtool.sh
+++ b/package/base-files/files/lib/upgrade/fwtool.sh
@@ -36,7 +36,9 @@ fwtool_check_image() {
}
[ "$REQUIRE_IMAGE_METADATA" = 1 ] && return 1
return 0
- fi
+ fi
+ # keep fwtool copy in /tmp for later reference from platform.sh for
device specific metadata removal
+ cp /usr/bin/fwtool /tmp/.
json_load "$(cat /tmp/sysupgrade.meta)" || {
echo "Invalid image metadata"
--
2.27.0
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel