From 412a26cd00a795d468bc6048f8efba53a1cd9ba5 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 28 Oct 2008 18:52:50 +0000 Subject: Remove some configuration files, workarounds are now in the ethernet driver, thanks sn9 SVN-Revision: 13062 --- target/linux/rdc/base-files/etc/preinit.arch | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 target/linux/rdc/base-files/etc/preinit.arch (limited to 'target/linux/rdc/base-files/etc/preinit.arch') diff --git a/target/linux/rdc/base-files/etc/preinit.arch b/target/linux/rdc/base-files/etc/preinit.arch new file mode 100644 index 0000000000..8f21b1f9ed --- /dev/null +++ b/target/linux/rdc/base-files/etc/preinit.arch @@ -0,0 +1,8 @@ +# Copyright (C) 2008 OpenWrt.org + +ash -c ". /etc/functions.sh +hdr=\$(find_mtd_part productinfo) +[ \$(find_mtd_part productinfo_parthdr) ] || rev=reverse +[ \"\$hdr\" ] && mac=\$(hexdump -n 6 -e '6/1 \",0x%X\"' \$hdr |cut -c2-) +[ \"\$mac\" = \"0x0,0x0,0x0,0x0,0x0,0x0\" ] && unset mac +[ \"\$mac\" ] && insmod r6040 \$rev mac_base=\$mac" -- cgit v1.2.3