Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions spoofmac/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,17 @@ def set_interface_mac(self, device, mac, port):
# For some reason this seems to be required even when changing a
# non-airport device.
subprocess.check_call([
MacSpoofer.PATH_TO_AIRPORT,
'-z'
'networksetup',
'-setairportpower',
device,
'off'
])

subprocess.check_call([
'networksetup',
'-setairportpower',
device,
'on'
])

# Change the MAC.
Expand Down