diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2022-10-20 22:43:45 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2022-10-21 08:54:34 +0200 |
commit | e629ced778263da2a256a9920c9856ec1efebc28 (patch) | |
tree | b5f408d1a3c3dfef7c6c59fc1747363d9fd8022b /target/linux/bcm53xx/base-files/etc | |
parent | 2b9bb5b187022f8b64c84781c071d6c2b0ce3e45 (diff) | |
download | upstream-e629ced778263da2a256a9920c9856ec1efebc28.tar.gz upstream-e629ced778263da2a256a9920c9856ec1efebc28.tar.bz2 upstream-e629ced778263da2a256a9920c9856ec1efebc28.zip |
bcm53xx: only fixup seama on D-Link DIR-885L
Just one device builds seama images so let's just fix up
seama on that one device. I guess the tool errors out but
this feels cleaner.
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
[rmilecki: drop "fixtrx" from D-Link case]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/bcm53xx/base-files/etc')
-rw-r--r-- | target/linux/bcm53xx/base-files/etc/uci-defaults/09_fix_crc | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/target/linux/bcm53xx/base-files/etc/uci-defaults/09_fix_crc b/target/linux/bcm53xx/base-files/etc/uci-defaults/09_fix_crc index eae84bb771..89ce8970d7 100644 --- a/target/linux/bcm53xx/base-files/etc/uci-defaults/09_fix_crc +++ b/target/linux/bcm53xx/base-files/etc/uci-defaults/09_fix_crc @@ -1,5 +1,22 @@ +. /lib/functions.sh + +board=$(board_name) + kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"\(kernel\|linux\)".*/\1/p' /proc/mtd) -mtd ${kernel_size:+-c 0x$kernel_size} fixtrx firmware && exit 0 -mtd ${kernel_size:+-c 0x$kernel_size} fixseama firmware && exit 0 -exit 1 +fixtrx() { + mtd ${kernel_size:+-c 0x$kernel_size} fixtrx firmware && exit 0 +} + +fixseama() { + mtd ${kernel_size:+-c 0x$kernel_size} fixseama firmware && exit 0 +} + +case "$board" in +dlink,dir-885l) + fixseama + ;; +*) + fixtrx + ;; +esac |