From 6ee541168614bebd8f3113f0a81d309ddfe0db9c Mon Sep 17 00:00:00 2001 From: Daniel Dickinson Date: Sun, 26 Dec 2010 04:18:04 +0000 Subject: [PATCH] base-files: Added uci-defaults script to run mtd fixtrx on firstboot for devices that need it. Signed-off-by: Daniel Dickinson SVN-Revision: 24836 --- .../etc/uci-defaults/brcm63xx_fixcrc.sh | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh 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 + -- 2.30.2