base-files: sysupgrade: Allow downloading of firmware images using HTTPS
[openwrt/openwrt.git] / package / base-files / files / sbin / sysupgrade
index 3cebfb68e06a838f2dac8e3dda28e27ea3418df3..f42974360cfdcdd439a86736af27f49e032daba6 100755 (executable)
@@ -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
                ;;