3 [ "$ACTION" = "add" ] ||
exit 0
5 PHYNBR
=${DEVPATH##*/phy}
7 [ -n "$PHYNBR" ] ||
exit 0
10 .
/lib
/functions
/system.sh
16 [ "$PHYNBR" -eq 0 ] && mtd_get_mac_ascii cfg2 RADIOADDR1
> /sys
${DEVPATH}/macaddress
17 [ "$PHYNBR" -eq 1 ] && mtd_get_mac_ascii cfg2 RADIOADDR0
> /sys
${DEVPATH}/macaddress
19 enterasys
,ws-ap3710i|\
20 extreme-networks
,ws-ap3825i
)
21 mtd_get_mac_ascii cfg2 RADIOADDR
${PHYNBR} > /sys
${DEVPATH}/macaddress
24 mtd_get_mac_ascii uboot-env0 wmac$
(($PHYNBR + 1)) > /sys
${DEVPATH}/macaddress
27 mtd_get_mac_ascii u-boot-env ethaddr
> /sys
${DEVPATH}/macaddress