2016-10-11 18:32:25 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-05-12 20:36:07 +00:00
|
|
|
. /lib/functions.sh
|
2016-10-11 18:32:25 +00:00
|
|
|
|
|
|
|
fix_seama_header() {
|
|
|
|
local kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"kernel".*/\1/p' /proc/mtd)
|
|
|
|
|
|
|
|
[ "$kernel_size" ] && mtd -c 0x$kernel_size fixseama firmware
|
|
|
|
}
|
|
|
|
|
2017-05-12 20:36:07 +00:00
|
|
|
board=$(board_name)
|
2016-10-11 18:32:25 +00:00
|
|
|
|
|
|
|
case "$board" in
|
|
|
|
dir-869-a1)
|
|
|
|
fix_seama_header
|
|
|
|
;;
|
|
|
|
esac
|