3 [ "$ACTION" == "add" ] ||
exit 0
5 PHYNBR
=${DEVPATH##*/phy}
7 [ -n $PHYNBR ] ||
exit 0
10 .
/lib
/functions
/system.sh
11 .
/lib
/functions
/k2t.sh
17 # There is no eeprom data for 5 GHz wlan in "art" partition
18 # which would allow to patch the macaddress
19 [ "$PHYNBR" -eq 1 ] && \
20 echo $
(macaddr_add
"$(mtd_get_mac_ascii u-boot-env ethaddr)" 1) > /sys
${DEVPATH}/macaddress
23 # The K2T factory firmware does use LAN mac address as the 2.4G wifi mac address
24 [ "$PHYNBR" -eq 1 ] && \
25 echo $
(k2t_get_mac
"lan_mac") > /sys
${DEVPATH}/macaddress
27 tplink
,archer-c58-v1|\
29 echo $
(macaddr_add $
(mtd_get_mac_binary mac
8) $
(($PHYNBR - 1)) ) > /sys
${DEVPATH}/macaddress