mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
412a26cd00
SVN-Revision: 13062
9 lines
335 B
Plaintext
9 lines
335 B
Plaintext
# 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"
|