ar71xx: Unifi AP Pro sysupgrade patch
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 14 Nov 2013 19:38:54 +0000 (19:38 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 14 Nov 2013 19:38:54 +0000 (19:38 +0000)
commit09e51af7eb7114e27b11520b89322b77d04cd639
tree96595ad4b5306c4fe84034fd0ee19cc80823245d
parent6cd6ad972977e1f795ccc5dc8db3044559bcd762
ar71xx: Unifi AP Pro sysupgrade patch

The current implementation of mtd will not append the backup
file created by sysupgrade to the correct partition, as mtd will append
the data to first jffs2 partition it finds. As the kernel is also
stored on a jffs2 partition (which resides before the overlay
partition), the data will be appended to this partition.

To fix this problem, a new option

-s <number>             skip the first n bytes when appending data to the jffs2 partiton, defaults to "0"

is added to mtd.

Signed-off-by: Peter Wagner <tripolar@gmx.at>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38807 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/lib/upgrade/common.sh
package/base-files/files/sbin/sysupgrade
package/system/mtd/src/mtd.c
target/linux/ar71xx/base-files/lib/upgrade/platform.sh