bcm53xx: fix partition typos in 09_fix_crc

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
This commit is contained in:
Rafał Miłecki 2016-06-10 13:03:44 +02:00
parent 442db0d6d8
commit c40e96d133

View file

@ -1,6 +1,6 @@
#!/bin/sh
kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"\(kerel\|liux\)".*/\1/p' /proc/mtd)
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