openwrtv3/package
John Crispin 4a4c324cd2 mtd: fix reading of image magic bytes in smaller chunks
The image_check currently fails when it cannot read all magic bytes in a
single chunk. But this can happen when the data are read from a pipe. This
currently breaks the openmesh.sh upgrade script with musl because it uses
dd with a blocksize of 1 to copy the image file to the mtd process.

The read can simply be repeated until enough bytes are read for the magic
byte check. It only stops when either an error was returned or 0 bytes were
read.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 48891
2016-03-03 20:24:38 +00:00
..
base-files base-files: support passing mode to ucidef_set_led_netdev() 2016-02-26 14:49:17 +00:00
boot uboot-oxnas: fix typo leading to tool not being built 2016-02-25 10:13:53 +00:00
devel strace: update to version 4.11 2016-02-25 21:55:41 +00:00
firmware mac80211: add packages libertas-spi module and firmware 2016-02-22 08:54:08 +00:00
kernel om-watchdog: Move each board name to its own line 2016-03-03 20:24:35 +00:00
libs cyassl: disable Intel ASM for now 2016-03-02 10:01:27 +00:00
network dnsmasq: add host-specific lease time option for static hosts 2016-02-26 09:13:03 +00:00
system mtd: fix reading of image magic bytes in smaller chunks 2016-03-03 20:24:38 +00:00
utils bsdiff: add bsdiff and bspatch tool package 2016-02-27 22:59:13 +00:00
Makefile package/Makefile: override opkg installation time when SOURCE_DATE_EPOCH set 2016-01-31 23:29:12 +00:00