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 7c104a8358)
openwrt-18.06
Petr Štetiar 2018-11-09 08:25:41 +01:00 committed by Jo-Philipp Wich
parent 0340d3ad2d
commit f7a97a21f7
1 changed files with 2 additions and 1 deletions

View File

@ -204,7 +204,8 @@ type platform_check_image >/dev/null 2>/dev/null || {
} }
case "$IMAGE" in case "$IMAGE" in
http://*) http://*|\
https://*)
wget -O/tmp/sysupgrade.img "$IMAGE" wget -O/tmp/sysupgrade.img "$IMAGE"
IMAGE=/tmp/sysupgrade.img IMAGE=/tmp/sysupgrade.img
;; ;;