[rdc] add support for 2.6.28 and use it as the default kernel version, tested on...
[openwrt-10.03/.git] / target / linux / rdc / base-files / etc / preinit.arch
1 # Copyright (C) 2008 OpenWrt.org
2
3 ash -c ". /etc/functions.sh
4 hdr=\$(find_mtd_part productinfo)
5 [ \$(find_mtd_part productinfo_parthdr) ] || rev=reverse
6 [ \"\$hdr\" ] && mac=\$(hexdump -n 6 -e '6/1 \",0x%X\"' \$hdr |cut -c2-)
7 [ \"\$mac\" = \"0x0,0x0,0x0,0x0,0x0,0x0\" ] && unset mac
8 [ \"\$mac\" ] && insmod r6040 \$rev mac_base=\$mac"