#!/bin/ash [ "$ACTION" == "add" ] || exit 0 PHYNBR=${DEVPATH##*/phy} [ -n $PHYNBR ] || exit 0 . /lib/functions.sh . /lib/functions/system.sh . /lib/functions/k2t.sh board=$(board_name) case "$board" in phicomm,k2t) # The K2T factory firmware does use LAN mac address as the 2.4G wifi mac address [ "$PHYNBR" -eq 1 ] && \ echo $(k2t_get_mac "lan_mac") > /sys${DEVPATH}/macaddress ;; *) ;; esac