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

posted @ 2014-09-25 08:38  予晨  阅读(520)  评论(0编辑  收藏  举报