[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Automatically spoof MAC address when interface is brought down



Hello,

I am a Debian 8.7 user.
I use the default Network Manager.

I would like to know if there is a way to automatically spoof the MAC address of my wireless interface every time I bring down (and up)?

I have a Thinkpad x210 and there is a physical switch for the wifi interface. For the time being, every time I close my laptop lid and open it up again, I have to manually:

su
macchanger -a wlan0
exit

Is there a way to automate this?

Thank you in advance for your help.

CA


Reply to: