1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

set ap0 mac_addr to be different from wlan0

This commit is contained in:
Jerry Vonau 2018-11-30 02:20:20 -06:00
parent c56b9e6510
commit 71907893cb
3 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,3 @@
SUBSYSTEM=="ieee80211", ACTION=="add|change", KERNEL=="phy0", \
RUN+="/sbin/iw phy phy0 interface add ap0 type __ap", \
RUN+="MAC=`iw dev wlan0 info | grep addr | sed -e s/addr//` && /bin/ip link set ap0 address $MAC"
RUN+="/sbin/ip link set ap0 address b8:27:99:12:34:56"