updateMac.sh 192 B

12345678
  1. mac=$(hciconfig hci0 | awk '/BD Address: /{print $3}')
  2. if [ "$mac" != NULL ] ; then
  3. echo $mac
  4. a="MY_ADDRESS"
  5. b="\"$mac\""
  6. sed -i -e "s/\($a=\).*/\1$b/" server/btk_server.py
  7. fi
  8. #echo $mac