mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-13 22:46:19 -05:00
The firmware update file can get big, so instead of extracting the whole file into the tmp folder potentially running out of space and make the upgrade fail, stream from tar xvf -O directly to the mtd write command. Refactor the checking of partitions and the actual upgrade into two steps when we are at it. Link: https://github.com/openwrt/openwrt/pull/21782 Signed-off-by: Linus Walleij <linusw@kernel.org>