diff options
author | John Crispin <john@phrozen.org> | 2018-02-21 20:40:50 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-03-14 19:04:50 +0100 |
commit | 54b275c8ed3ad20c447fd46deec83384822ac79d (patch) | |
tree | 4198c9f77e467b316940cb78297d3030e67d67ea /target/linux/ipq40xx/base-files/lib/upgrade/platform.sh | |
parent | b7f115f22a9d79bd45bfe27cfb8d491dac49feb4 (diff) | |
download | upstream-54b275c8ed3ad20c447fd46deec83384822ac79d.tar.gz upstream-54b275c8ed3ad20c447fd46deec83384822ac79d.tar.bz2 upstream-54b275c8ed3ad20c447fd46deec83384822ac79d.zip |
ipq40xx: add target
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/ipq40xx/base-files/lib/upgrade/platform.sh')
-rw-r--r-- | target/linux/ipq40xx/base-files/lib/upgrade/platform.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh new file mode 100644 index 0000000000..defa04d880 --- /dev/null +++ b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh @@ -0,0 +1,27 @@ +PART_NAME=firmware +REQUIRE_IMAGE_METADATA=1 + +RAMFS_COPY_BIN='fw_printenv fw_setenv' +RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock' + +platform_check_image() { + return 0; +} + +platform_do_upgrade() { + case "$(board_name)" in + openmesh,a42) + PART_NAME="inactive" + platform_do_upgrade_openmesh "$ARGV" + ;; + *) + default_do_upgrade "$ARGV" + ;; + esac +} + +blink_led() { + . /etc/diag.sh; set_state upgrade +} + +append sysupgrade_pre_upgrade blink_led |