From: Petr Štetiar <ynezz@true.cz> Date: Fri, 9 Nov 2018 07:25:41 +0000 (+0100) Subject: base-files: sysupgrade: Allow downloading of firmware images using HTTPS X-Git-Tag: v18.06.2~70 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f7a97a21f77bcc339c5b5d75d426c428324be6b8;p=openwrt%2Fstaging%2Fpepe2k.git base-files: sysupgrade: Allow downloading of firmware images using HTTPS Currently it's only possible to download images over HTTP. Signed-off-by: Petr Štetiar <ynezz@true.cz> (backported from 7c104a83589c3e3fbfdfda2ef68b8695f57dde75) --- diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade index 3637943117..b75bd097f3 100755 --- a/package/base-files/files/sbin/sysupgrade +++ b/package/base-files/files/sbin/sysupgrade @@ -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 ;;