You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
335 B
8 lines
335 B
# 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"
|
|
|