tx2-batman-mist_ws/Batman_setup_scripts/copymac.sh

2 lines
139 B
Bash

/sbin/ifconfig bat0 hw ether `/sbin/ifconifg $1 | grep -o -E '([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}' | sed 's/..\(:..:..:..:..:..\)/aa\1/'`