diff options
author | David Bauer <mail@david-bauer.net> | 2018-12-31 16:24:26 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2019-01-26 21:46:32 +0100 |
commit | 28cd2caa35ba9d3749fb0e792dfa9d9aeacc61fa (patch) | |
tree | 09af23127b58692a4d7aef48d433198313174b83 /package/base-files/files/lib | |
parent | 1e06482f7db284567b240ce6f59c644439ec813f (diff) | |
download | upstream-28cd2caa35ba9d3749fb0e792dfa9d9aeacc61fa.tar.gz upstream-28cd2caa35ba9d3749fb0e792dfa9d9aeacc61fa.tar.bz2 upstream-28cd2caa35ba9d3749fb0e792dfa9d9aeacc61fa.zip |
base-files: sysupgrade: support additional mtd options
Add support for passing additional parameters to mtd called during
sysupgrade. It will be required to toggle the "recovery moe" flag
supported by recent tp-link boards.
Signed-off-by: David Bauer <mail@david-bauer.net>
[split code from board support patch; add commit message]
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'package/base-files/files/lib')
-rw-r--r-- | package/base-files/files/lib/upgrade/common.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 8ee07494a3..b3a29fb32e 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -223,9 +223,9 @@ indicate_upgrade() { default_do_upgrade() { sync if [ "$SAVE_CONFIG" -eq 1 ]; then - get_image "$1" "$2" | mtd $MTD_CONFIG_ARGS -j "$CONF_TAR" write - "${PART_NAME:-image}" + get_image "$1" "$2" | mtd $MTD_ARGS $MTD_CONFIG_ARGS -j "$CONF_TAR" write - "${PART_NAME:-image}" else - get_image "$1" "$2" | mtd write - "${PART_NAME:-image}" + get_image "$1" "$2" | mtd $MTD_ARGS write - "${PART_NAME:-image}" fi [ $? -ne 0 ] && exit 1 } |