ar71xx: add uci defaults to fix trx header on the WRT160NL boards
authorGabor Juhos <juhosg@openwrt.org>
Sat, 27 Mar 2010 17:38:40 +0000 (17:38 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 27 Mar 2010 17:38:40 +0000 (17:38 +0000)
 * patch by Otto Solares

SVN-Revision: 20526

target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl [new file with mode: 0644]

diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl b/target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl
new file mode 100644 (file)
index 0000000..dce28dd
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+#
+# Copyright (C) 2010 OpenWrt.org
+#
+
+. /lib/ar71xx.sh
+
+board=$(ar71xx_board_name)
+
+wrt160nl_fixtrx() {
+       mtd -o 32 fixtrx firmware
+}
+
+if [ "${board}" == "wrt160nl" ]; then
+       wrt160nl_fixtrx
+fi