base-files: do not strip fwtool signature data during check
[openwrt/openwrt.git] / package / base-files / files / lib / upgrade / fwtool.sh
index e0e5c96c89ba91cdd17f0a928d67099ac226909e..6d7300bad632c76e9d24a4c227a9734b7ad55aac 100644 (file)
@@ -9,7 +9,7 @@ fwtool_check_signature() {
                fi
        }
 
-       if ! fwtool -q -t -s /tmp/sysupgrade.ucert "$1"; then
+       if ! fwtool -q -s /tmp/sysupgrade.ucert "$1"; then
                echo "Image signature not found"
                [ "$REQUIRE_IMAGE_SIGNATURE" = 1 -a "$FORCE" != 1 ] && {
                        echo "Use sysupgrade -F to override this check when downgrading or flashing to vendor firmware"
@@ -28,7 +28,7 @@ fwtool_check_image() {
 
        . /usr/share/libubox/jshn.sh
 
-       if ! fwtool -q -t -i /tmp/sysupgrade.meta "$1"; then
+       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"