openwrt-wan/lan获取纯mac/ip地址 | KaiQ.Gu|KerwinKoo Blog
openwrt-wan
获取wan口的方式 uci show network.wan.ifname
只显示结果:
uci show network.wan.ifname|cut -d'=' -f 2|sed -e "s/'//g"lan口IP 地址获取方式的proto:
uci show network.lan.proto|cut -d'=' -f 2|sed -e "s/'//g"获取lan口mac地址
uci show network.lan.macaddr|cut -d'=' -f 2|sed -e "s/'//g"