Skip to content

Instantly share code, notes, and snippets.

@nhooyr
Created January 11, 2016 05:54
Show Gist options
  • Save nhooyr/99cfd96aab135b381f09 to your computer and use it in GitHub Desktop.
Save nhooyr/99cfd96aab135b381f09 to your computer and use it in GitHub Desktop.
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:36:76:54:b8:9f", NAME="wl0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="14:cc:20:25:b0:bf", NAME="wl1", \
RUN="/usr/bin/iw dev $name interface add $name_ap type __ap", \
RUN+="/usr/bin/ip link set dev $name_ap address 90:3d:3b:b2:2f:5d", \
ENV{SYSTEMD_WANTS}+="hostapd.service"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment