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