1 [ "$ACTION" = "add" ] || exit 0
3 PHYNBR=${DEVPATH##*/phy}
5 [ -n $PHYNBR ] || exit 0
8 . /lib/functions/system.sh
14 # Set mac address for 5g device
15 [ "$PHYNBR" -eq 0 ] && \
16 macaddr_add $(mtd_get_mac_binary art 0x0) 2 > /sys${DEVPATH}/macaddress
20 ethaddr=$(mtd_get_mac_ascii u-boot-env ethaddr)
21 [ "$PHYNBR" -eq 0 ] && \
22 macaddr_add $ethaddr 1 > /sys${DEVPATH}/macaddress
23 [ "$PHYNBR" -eq 1 ] && \
24 echo -n $ethaddr > /sys${DEVPATH}/macaddress