From: Rafał Miłecki Date: Fri, 10 Jun 2016 11:09:10 +0000 (+0200) Subject: bcm53xx: pass datasize to mtd in hexadecimal format X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1f86257c2fa7eff11a2898e7f2ff5edc793495f5;p=librecmc%2Flibrecmc.git bcm53xx: pass datasize to mtd in hexadecimal format This avoids extra calculation in bash script. Signed-off-by: Rafał Miłecki --- 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 8cb8a90ce9..7056017107 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,8 +1,7 @@ #!/bin/sh kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"\(kernel\|linux\)".*/\1/p' /proc/mtd) -[ -n "$kernel_size" ] && kernel_size=$((0x$kernel_size)) -mtd ${kernel_size:+-c $kernel_size} fixtrx firmware && exit 0 +mtd ${kernel_size:+-c 0x$kernel_size} fixtrx firmware && exit 0 mtd fixseama firmware && exit 0 exit 1