diff options
author | Stijn Tintel <stijn@linux-ipv6.be> | 2016-07-18 19:39:57 +0200 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2016-10-27 01:50:42 +0300 |
commit | e3875350f3e4185020b64e0588bba521cd1d6e64 (patch) | |
tree | 55110b8007ef6e10d14fc858b3f4c32bf08b1ca7 /target/linux/ar71xx/base-files/etc/uci-defaults | |
parent | 6b0d279ca58bf6173b57c7e9b759be4552eab74a (diff) | |
download | upstream-e3875350f3e4185020b64e0588bba521cd1d6e64.tar.gz upstream-e3875350f3e4185020b64e0588bba521cd1d6e64.tar.bz2 upstream-e3875350f3e4185020b64e0588bba521cd1d6e64.zip |
ar71xx: add support for D-Link DAP-2695 rev. A1
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/uci-defaults')
-rw-r--r-- | target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-checksum | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-checksum b/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-checksum index 1bfd5253eb..057afe0193 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-checksum +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-checksum @@ -11,9 +11,18 @@ fixtrx() { mtd -o 32 fixtrx firmware } +fixwrgg() { + local kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"kernel".*/\1/p' /proc/mtd) + + [ "$kernel_size" ] && mtd -c 0x$kernel_size fixwrgg firmware +} + case "$board" in mynet-rext |\ wrt160nl) fixtrx ;; +dap-2695-a1) + fixwrgg + ;; esac |