openwrtv4/package/system
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
..
ca-certificates ca-certificates: update to version 20160104 2016-01-17 11:03:36 +00:00
fstools fstools: fix off-by-one error in the version number 2016-01-10 18:04:36 +00:00
mountd packages: use OPENWRT_GIT to point at the main openwrt git repo 2016-01-04 15:11:49 +00:00
mtd mtd: fix reading of image magic bytes in smaller chunks 2016-03-03 20:24:38 +00:00
opkg opkg: Make opkg understand old md5 2016-03-01 09:17:12 +00:00
procd procd: hotplug.json: allow passing hotplug events from all subsystems 2016-02-26 08:35:43 +00:00
rpcd rpcd: move to git.openwrt.org 2016-01-04 15:12:16 +00:00
ubox ubox: fix kmodloader resource leaks (#21826) 2016-02-09 13:03:24 +00:00
ubus ubus: update to the latest version, fixes a memory leak on client disconnect 2016-01-26 09:32:22 +00:00
uci uci: update to the latest version, fixes uci show output for anonymous sections (#21781) 2016-02-02 17:14:47 +00:00
usign usign: force installation to $(STAGING_DIR_HOST) 2016-01-25 23:05:49 +00:00
zram-swap cosmetic: remove trailing whitespaces 2015-10-15 22:12:13 +00:00