base-files: Added uci-defaults script to run mtd fixtrx on firstboot for devices...
authorDaniel Dickinson <crazycshore@gmail.com>
Sun, 26 Dec 2010 04:18:04 +0000 (04:18 +0000)
committerDaniel Dickinson <crazycshore@gmail.com>
Sun, 26 Dec 2010 04:18:04 +0000 (04:18 +0000)
Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net>
SVN-Revision: 24836

target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh [new file with mode: 0755]

diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh b/target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh
new file mode 100755 (executable)
index 0000000..fe35dc7
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# Copyright (C) 2007 OpenWrt.org
+#
+#
+
+. /lib/brcm63xx.sh
+
+do_fixcrc() {
+       mtd fixtrx linux
+}
+
+brcm63xx_detect
+
+case "$board_name" in
+       "bcm63xx/CPVA642 "*)
+               do_fixcrc
+               ;;
+esac
+