diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-08-16 16:54:38 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-04 13:42:40 +0200 |
commit | f25d164aca80ff7c21ebb99b95e5f7db11fe21b3 (patch) | |
tree | 72152d9f555a00b14b656bbe097fae2ce85ebb76 /package/base-files/files/lib/upgrade/common.sh | |
parent | 4e85dc95b02878f36d19a142f0eb26fd92abdbc1 (diff) | |
download | upstream-f25d164aca80ff7c21ebb99b95e5f7db11fe21b3.tar.gz upstream-f25d164aca80ff7c21ebb99b95e5f7db11fe21b3.tar.bz2 upstream-f25d164aca80ff7c21ebb99b95e5f7db11fe21b3.zip |
base-files: pass "save_config" option to the "sysupgrade" method
This explicitly lets stage2 know if config should be preserved.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit b534ba96110012d2697d19d71b7dcd60bd4cd375)
Diffstat (limited to 'package/base-files/files/lib/upgrade/common.sh')
-rw-r--r-- | package/base-files/files/lib/upgrade/common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 2afa0addb4..efa301cd95 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -218,7 +218,7 @@ indicate_upgrade() { # $(2): (optional) pipe command to extract firmware, e.g. dd bs=n skip=m default_do_upgrade() { sync - if [ "$SAVE_CONFIG" -eq 1 ]; then + if [ "$UPGRADE_OPT_SAVE_CONFIG" -eq 1 ]; then get_image "$1" "$2" | mtd $MTD_ARGS $MTD_CONFIG_ARGS -j "$CONF_TAR" write - "${PART_NAME:-image}" else get_image "$1" "$2" | mtd $MTD_ARGS write - "${PART_NAME:-image}" |