Просмотр исходного кода

base-files: Added uci-defaults script to run mtd fixtrx on firstboot for devices that need it.

Signed-off-by: Daniel Dickinson <[email protected]>

SVN-Revision: 24836
Daniel Dickinson 15 лет назад
Родитель
Сommit
6ee5411686
1 измененных файлов с 20 добавлено и 0 удалено
  1. 20 0
      target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh

+ 20 - 0
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
+