mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
bcm53xx: fix partition typos in 09_fix_crc
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
This commit is contained in:
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
Block a user