2012-10-18 07:23:03 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2012 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
. /lib/ramips.sh
|
|
|
|
|
|
|
|
fix_seama_header() {
|
2016-06-30 13:50:11 +00:00
|
|
|
local kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"kernel".*/\1/p' /proc/mtd)
|
2012-10-18 07:23:03 +00:00
|
|
|
|
2016-06-30 13:50:11 +00:00
|
|
|
[ "$kernel_size" ] && mtd -c 0x$kernel_size fixseama firmware
|
2012-10-18 07:23:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
board=$(ramips_board_name)
|
|
|
|
|
|
|
|
case "$board" in
|
2014-06-02 12:42:52 +00:00
|
|
|
cy-swr1100 | \
|
2015-01-17 21:20:05 +00:00
|
|
|
dir-645 | \
|
|
|
|
dir-860l-b1)
|
2016-06-30 13:50:11 +00:00
|
|
|
fix_seama_header
|
2012-10-18 07:23:03 +00:00
|
|
|
;;
|
|
|
|
esac
|