mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 21:37:10 +02:00
package/mtd: don't append jffs2 data multiple times
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27358 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
547c706620
commit
01b3fa0465
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=mtd
|
||||
PKG_RELEASE:=15
|
||||
PKG_RELEASE:=16
|
||||
|
||||
PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
|
||||
STAMP_PREPARED := $(STAMP_PREPARED)_$(call confvar,CONFIG_MTD_REDBOOT_PARTS)
|
||||
|
@ -409,6 +409,9 @@ resume:
|
||||
/* got an EOF marker - this is the place to add some jffs2 data */
|
||||
skip = mtd_replace_jffs2(mtd, fd, e, jffs2file);
|
||||
|
||||
/* don't add it again */
|
||||
jffs2file = NULL;
|
||||
|
||||
w += skip;
|
||||
e += skip;
|
||||
skip -= buflen;
|
||||
|
Loading…
Reference in New Issue
Block a user