Skip to content

Conversation

@nirgal
Copy link

@nirgal nirgal commented Jul 11, 2014

Hello

Here are a couple of pacthes:

  • --different option for paranoid distros
  • don't return success if a change was requested and the address still is the same (double checking).

They are independant, you can take one or both if you like them.

Cheers

nirgal added 2 commits July 11, 2014 17:39
Occasionally, a random address can be the same as the previous one.
That patch adds a --different option that will try again if the we are unlucky
enough to get a random one that is the same one.
Some distributions such as tails are paranoid enough not to trust the exit code
and will take drastic measures if macchange doesn't actually change the mac
address. That option should help them.
Use the MAC address reading at the end as a double check.
@erjoalgo
Copy link

erjoalgo commented May 29, 2017

It's not necessary to be paranoid to distrust macchanger's exit status, since it currently exits 0 (success) even if nothing at all was done due to wrong usage. So exit status doesn't have a clear meaning.

Also, that the mac did not change is no reason to exit as failure. For example, you might want to go back to the permanent mac, whether or not you're already there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants