base-files: sysupgrade: Allow downloading of firmware images using HTTPS
[openwrt/staging/hauke.git] / package / base-files / files / sbin / sysupgrade
index c9615e54c30253a9eb611a4d730556ea7746f1c2..f42974360cfdcdd439a86736af27f49e032daba6 100755 (executable)
@@ -136,7 +136,7 @@ add_overlayfiles() {
 }
 
 # hooks
-sysupgrade_image_check="fwtool_check_image platform_check_image"
+sysupgrade_image_check="fwtool_check_signature fwtool_check_image platform_check_image"
 
 if [ $SAVE_OVERLAY = 1 ]; then
        [ ! -d /overlay/upper/etc ] && {
@@ -203,7 +203,8 @@ type platform_check_image >/dev/null 2>/dev/null || {
 }
 
 case "$IMAGE" in
-       http://*)
+       http://*|\
+       https://*)
                wget -O/tmp/sysupgrade.img "$IMAGE"
                IMAGE=/tmp/sysupgrade.img
                ;;