kernel: kmod-hwmon-tps23861: Add missing dependency to kmod-regmap-i2c
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / uci-defaults / 09_fix-checksum
1 #
2 # Copyright (C) 2012 OpenWrt.org
3 #
4
5 . /lib/functions.sh
6
7 fix_checksum() {
8 local kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"kernel".*/\1/p' /proc/mtd)
9
10 [ "$kernel_size" ] && mtd -c 0x$kernel_size fix$1 firmware
11 }
12
13 board=$(board_name)
14
15 case "$board" in
16 dlink,dap-1522-a1)
17 fix_checksum wrg
18 ;;
19 dlink,dch-m225|\
20 dlink,dir-645|\
21 dlink,dir-860l-b1|\
22 samsung,cy-swr1100)
23 fix_checksum seama
24 ;;
25 esac