bdb8b71ff72a60b013f0235a30068750c3f73640
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 macaddr_add
"$(mtd_get_mac_ascii u-boot-env ethaddr)" 1 > /sys
${DEVPATH}/macaddress
23 # There is no eeprom data for 5 GHz wlan in "art" partition
24 # which would allow to patch the macaddress
25 [ "$PHYNBR" -eq 0 ] && \
26 macaddr_add
"$(mtd_get_mac_ascii u-boot-env ethaddr)" 1 > /sys
${DEVPATH}/macaddress
29 # The K2T factory firmware does use LAN mac address as the 2.4G wifi mac address
30 [ "$PHYNBR" -eq 1 ] && \
31 k2t_get_mac
"lan_mac" > /sys
${DEVPATH}/macaddress