base-files: sysupgrade: Allow downloading of firmware images using HTTPS
authorPetr Štetiar <ynezz@true.cz>
Fri, 9 Nov 2018 07:25:41 +0000 (08:25 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:22:07 +0000 (17:22 +0100)
Currently it's only possible to download images over HTTP.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(backported from 7c104a83589c3e3fbfdfda2ef68b8695f57dde75)

package/base-files/files/sbin/sysupgrade

index 3637943117146c20232674b12eb30afc90f13396..b75bd097f3b5fdc979c679518de204e897a50a2a 100755 (executable)
@@ -204,7 +204,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
                ;;