1#!/bin/sh 2# 3# Copyright (C) 2012 OpenWrt.org 4# 5 6. /lib/ramips.sh 7 8fix_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 14board=$(ramips_board_name) 15 16case "$board" in 17cy-swr1100 | \ 18dir-645 | \ 19dir-860l-b1) 20 fix_seama_header 21 ;; 22esac 23