aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc/uci-defaults
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/base-files/etc/uci-defaults')
-rw-r--r--target/linux/ramips/base-files/etc/uci-defaults/09_fix-checksum (renamed from target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header)9
1 files changed, 6 insertions, 3 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header b/target/linux/ramips/base-files/etc/uci-defaults/09_fix-checksum
index 9533aed475..7e579316b5 100644
--- a/target/linux/ramips/base-files/etc/uci-defaults/09_fix-seama-header
+++ b/target/linux/ramips/base-files/etc/uci-defaults/09_fix-checksum
@@ -5,10 +5,10 @@
. /lib/functions.sh
-fix_seama_header() {
+fix_checksum() {
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
+ [ "$kernel_size" ] && mtd -c 0x$kernel_size fix$1 firmware
}
board=$(board_name)
@@ -18,6 +18,9 @@ cy-swr1100 | \
dch-m225 | \
dir-645 | \
dir-860l-b1)
- fix_seama_header
+ fix_checksum seama
+ ;;
+dap-1522-a1)
+ fix_checksum wrg
;;
esac