0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2025-09-24 17:52:56 +00:00
Files
Linus Walleij e629ced778 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>
2022-10-21 08:54:34 +02:00

23 lines
361 B
Plaintext

. /lib/functions.sh
board=$(board_name)
kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"\(kernel\|linux\)".*/\1/p' /proc/mtd)
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