aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/base-files/etc
diff options
context:
space:
mode:
authorDaniel Dickinson <crazycshore@gmail.com>2010-12-26 04:18:04 +0000
committerDaniel Dickinson <crazycshore@gmail.com>2010-12-26 04:18:04 +0000
commit6ee541168614bebd8f3113f0a81d309ddfe0db9c (patch)
tree53e0bde11c1f892ac0c0ce8462a3684eb6631df6 /target/linux/brcm63xx/base-files/etc
parentdaa854ee2d213d21938760e5d52d27212e947054 (diff)
downloadupstream-6ee541168614bebd8f3113f0a81d309ddfe0db9c.tar.gz
upstream-6ee541168614bebd8f3113f0a81d309ddfe0db9c.tar.bz2
upstream-6ee541168614bebd8f3113f0a81d309ddfe0db9c.zip
base-files: Added uci-defaults script to run mtd fixtrx on firstboot for devices that need it.
Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net> SVN-Revision: 24836
Diffstat (limited to 'target/linux/brcm63xx/base-files/etc')
-rwxr-xr-xtarget/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh20
1 files changed, 20 insertions, 0 deletions
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
index 0000000000..fe35dc7613
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh
@@ -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
+