mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-09 04:12:15 +00:00
base-files: sysupgrade: exit if the firmware download failed
Sysupgrade process shouldn't continue if the firmware image couldn't be downloaded. Ref: http://lists.infradead.org/pipermail/openwrt-devel/2019-December/020940.html Reported-by: Petr Novák <petrn@me.com> Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
parent
411a666df2
commit
cf3da66d2c
@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
|
|||||||
include $(INCLUDE_DIR)/feeds.mk
|
include $(INCLUDE_DIR)/feeds.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=210
|
PKG_RELEASE:=211
|
||||||
PKG_FLAGS:=nonshared
|
PKG_FLAGS:=nonshared
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
|
@ -294,7 +294,7 @@ type platform_check_image >/dev/null 2>/dev/null || {
|
|||||||
case "$IMAGE" in
|
case "$IMAGE" in
|
||||||
http://*|\
|
http://*|\
|
||||||
https://*)
|
https://*)
|
||||||
wget -O/tmp/sysupgrade.img "$IMAGE"
|
wget -O/tmp/sysupgrade.img "$IMAGE" || exit 1
|
||||||
IMAGE=/tmp/sysupgrade.img
|
IMAGE=/tmp/sysupgrade.img
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user