diff mbox series

[v3,2/4] package: fix nand.sh fwtool trailer removal for UBIFS

Message ID 20200901043709.1804-3-todorcolov@abv.bg
State Rejected
Headers show
Series ipq806x: add support for Linksys E8350 - Cover letter | expand

Commit Message

Todor Colov Sept. 1, 2020, 4:37 a.m. UTC
---
 package/base-files/files/lib/upgrade/nand.sh | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/package/base-files/files/lib/upgrade/nand.sh b/package/base-files/files/lib/upgrade/nand.sh
index ad04bbc753..91eea3bd3a 100644
--- a/package/base-files/files/lib/upgrade/nand.sh
+++ b/package/base-files/files/lib/upgrade/nand.sh
@@ -224,6 +224,7 @@  nand_upgrade_ubinized() {
 	local mtddev="/dev/mtd${mtdnum}"
 	ubidetach -p "${mtddev}" || true
 	sync
+	fwtool -q -t -i /dev/null "$1"
 	ubiformat "${mtddev}" -y -f "${ubi_file}"
 	ubiattach -p "${mtddev}"
 	nand_do_upgrade_success