linux 获取br-lan的mac地址并post给一个网址

#!/bin/sh
mac=`ifconfig br-lan|grep 'HWaddr'|awk -F " " '{print $5}'`
curl -d macaddress=$mac http://xxx.xxx.com

原文地址:https://www.cnblogs.com/jzyuchen/p/3992004.html