aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2018-11-09 08:25:41 +0100
committerJo-Philipp Wich <jo@mein.io>2018-12-18 17:22:07 +0100
commitf7a97a21f77bcc339c5b5d75d426c428324be6b8 (patch)
tree534db992d9fefc7dfe47f6c990231f36a23e30ec /package/base-files/files
parent0340d3ad2d1b6bdc9c58e242d987dd92a98d0db1 (diff)
downloadupstream-f7a97a21f77bcc339c5b5d75d426c428324be6b8.tar.gz
upstream-f7a97a21f77bcc339c5b5d75d426c428324be6b8.tar.bz2
upstream-f7a97a21f77bcc339c5b5d75d426c428324be6b8.zip
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)
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/sbin/sysupgrade3
1 files changed, 2 insertions, 1 deletions
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
;;