3 [ "$ACTION" == "add" ] ||
exit 0
5 PHYNBR
=${DEVPATH##*/phy}
7 [ -n $PHYNBR ] ||
exit 0
10 .
/lib
/functions
/system.sh
16 echo $
(macaddr_add $
(mtd_get_mac_ascii devinfo hw_mac_addr
) $
(($PHYNBR + 1)) ) > /sys
${DEVPATH}/macaddress
21 echo $
(macaddr_add $
(mtd_get_mac_binary art
6) $
(($PHYNBR + 1)) ) > /sys
${DEVPATH}/macaddress
24 echo $
(macaddr_add $
(mtd_get_mac_binary default-mac
8) $
(($PHYNBR - 1)) ) > /sys
${DEVPATH}/macaddress
27 echo $
(macaddr_add $
(mtd_get_mac_binary default-mac
0) $
(($PHYNBR - 1)) ) > /sys
${DEVPATH}/macaddress
30 echo $
(macaddr_add $
(mtd_get_mac_ascii
0:APPSBLENV ethaddr
) $
((1 - $PHYNBR)) ) > /sys
${DEVPATH}/macaddress