base-files: add support for platform_pre_upgrade function
authorJohn Crispin <john@openwrt.org>
Thu, 9 Apr 2015 14:33:03 +0000 (14:33 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 9 Apr 2015 14:33:03 +0000 (14:33 +0000)
commit8120d842cba14ff609241115d362b68531b23b00
treed27597f0d946f6dcf91e7a594fa16dca1e02b8ba
parenta72fd511e3efb8899ecf354de31c37334011b1e7
base-files: add support for platform_pre_upgrade function

Current NAND sysupgrade process is a bit hard to follow due to the way
of triggering stage1. Currently this is done by leaving a /mark/ in the
form of /tmp/sysupgrade-nand-path during nand_do_platform_check.
Existence of this mark stops standard sysupgrade process (as the result
of sysupgrade_pre_upgrade exit). This may be a bit misleading.

Proposed solution adds a new function that will allow platform.sh
trigger NAND sysupgrade consciously. This will also allow cleaning
nand_do_platform_check limiting it to just checking the image.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45338
package/base-files/files/sbin/sysupgrade