mirror of https://github.com/hak5/openwrt.git
bcm53xx: fix partition typos in 09_fix_crc
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>lede-17.01
parent
442db0d6d8
commit
c40e96d133
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue