diff options
author | Chen Minqiang <ptpt52@gmail.com> | 2018-01-11 23:43:09 +0800 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-01-15 21:45:43 +0100 |
commit | a8054d83dcc37f2b62ef874c18741cc60c219c61 (patch) | |
tree | 6ac5a4e05eb143d3359ff622e199d6abe37800ab /target/linux | |
parent | 16f2befc3cae3b541682644f53f5a81b2aaa9150 (diff) | |
download | upstream-a8054d83dcc37f2b62ef874c18741cc60c219c61.tar.gz upstream-a8054d83dcc37f2b62ef874c18741cc60c219c61.tar.bz2 upstream-a8054d83dcc37f2b62ef874c18741cc60c219c61.zip |
ramips: add image checks
As long as we can't enforce image metadata, we need to use (platform)
image checks to have at least soem kind of validation.
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Diffstat (limited to 'target/linux')
-rwxr-xr-x | target/linux/ramips/base-files/lib/upgrade/platform.sh | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index cd21001324..e2ab3a643e 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -264,9 +264,11 @@ platform_check_image() { ;; hc5962|\ mir3g|\ - r6220) - # these boards use metadata images - return 0 + r6220|\ + ubnt-erx|\ + ubnt-erx-sfp) + nand_do_platform_check "$board" "$1" + return $?; ;; re350-v1) [ "$magic" != "01000000" ] && { @@ -275,11 +277,6 @@ platform_check_image() { } return 0 ;; - ubnt-erx|\ - ubnt-erx-sfp) - nand_do_platform_check "$board" "$1" - return $?; - ;; wcr-1166ds|\ wsr-1166) [ "$magic" != "48445230" ] && { |