diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-06-27 15:23:37 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-06-27 15:23:37 +0200 |
commit | c75a18ae2fae3ca77c2db34ce858993edf380068 (patch) | |
tree | 99e78287fb4233b29aaa5d8edca829b7ec3cbd9f /target/linux/bcm53xx/base-files | |
parent | cc5a0d09eedbacb0addb91b1031434dedcf4f604 (diff) | |
download | master-187ad058-c75a18ae2fae3ca77c2db34ce858993edf380068.tar.gz master-187ad058-c75a18ae2fae3ca77c2db34ce858993edf380068.tar.bz2 master-187ad058-c75a18ae2fae3ca77c2db34ce858993edf380068.zip |
bcm53xx: pass datasize to mtd in hexadecimal format
This avoids extra calculation in bash script.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'target/linux/bcm53xx/base-files')
-rw-r--r-- | target/linux/bcm53xx/base-files/etc/uci-defaults/09_fix_crc | 3 |
1 files changed, 1 insertions, 2 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 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 |