Philip Prindeville wrote:
> For what it's worth, getting the mac address with iproute is trivial.
> 
> ip -o link show dev $iface | awk '{print $13;}'

But I think you can't assume it's available.
Also the oneliner above doesn't work:
root@OpenWrt:/# ip -o link show dev wlan0 | awk '{print $13;}'
DORMANT
root@OpenWrt:/# ip -o link show dev wlan0
10: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan 
state UP mode DORMANT qlen 32\    link/ether 1c:af:f7:49:50:56 brd 
ff:ff:ff:ff:ff:ff

And someone else pointed out that this script is now superseded by
netifd anyway (Which seems to not exhibit this problem).

-- 
Tobias                                          PGP: http://8ef7ddba.uguu.de
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to