1 # Copyright (C) 2008 OpenWrt.org
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"