projects
/
librecmc
/
librecmc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ramips: Add support for D-Link DCH-M225
[librecmc/librecmc.git]
/
target
/
linux
/
ramips
/
base-files
/
etc
/
uci-defaults
/
09_fix-seama-header
1
#!/bin/sh
2
#
3
# Copyright (C) 2012 OpenWrt.org
4
#
5
6
. /lib/ramips.sh
7
8
fix_seama_header() {
9
local kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"kernel".*/\1/p' /proc/mtd)
10
11
[ "$kernel_size" ] && mtd -c 0x$kernel_size fixseama firmware
12
}
13
14
board=$(ramips_board_name)
15
16
case "$board" in
17
cy-swr1100 | \
18
dch-m225 | \
19
dir-645 | \
20
dir-860l-b1)
21
fix_seama_header
22
;;
23
esac