alobbs / macchanger

GNU MAC Changer
http://www.gnu.org/software/macchanger
GNU General Public License v3.0
601 stars 113 forks source link

MAC reverts back after sleep? #81

Closed ghost closed 3 years ago

ghost commented 3 years ago

So MAC adress reverts back to perment address after sleep/suspend.

Macchanger runs at @reboot via crontab no problem but reverts back once the computer goes to sleep/suspend.

How do I make machanger stay or run after sleep/suspend?

I tryed makiong a script

sudo nano /etc/network/if-up.d/macchange

#!/bin/sh

if [ "$IFACE" = lo ]; then
        exit 0
fi

/usr/bin/macchanger -r wlp2s0

and made it executable but didn't fix the issue.

>I am using xfce desktop

>Is this issues pertaining to /etc/NetworkManager/ ?

>Can anyone help me out with a script I need to make?

streamdp commented 3 years ago

Hi @CyberPunkInterface, look this issue #83.

ghost commented 3 years ago

Thanks, @streamdp

Editing the /etc/default/macchanger and adding ENABLE_ON_POST_UP_DOWN=true and adding my interface name wlp2s0 seemed to help.

I forgot to Add that Macchanger was being managed at boot via crontab.