[OpenWrt-Devel] [PATCH] base-files: sysupgrade: Allow downloading of firmware images using HTTPS
Petr Štetiar
ynezz at true.cz
Fri Nov 9 02:25:41 EST 2018
From: Petr Štetiar <pstetiar at ext.nomosphere.fr>
Currently it's only possible to download images over HTTP.
Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
package/base-files/files/sbin/sysupgrade | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade
index 3cebfb6..f429743 100755
--- a/package/base-files/files/sbin/sysupgrade
+++ b/package/base-files/files/sbin/sysupgrade
@@ -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
;;
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list