-
Place the
random-mac.service
file in to/etc/systemd/system
-
Update the file so that
wifidevicename
is your WiFi device name, such aswlan0
orwlp1s0
-
Give it permissions:
chmod 644 chown root:root
-
Finally run:
sudo systemctl enable random-mac.service
Last active
June 19, 2016 17:16
-
-
Save yamatt/0c24fecf3f66afa5b08c0c8ad59c45b8 to your computer and use it in GitHub Desktop.
Randomly assign yourself a new MAC at every boot for SystemD/Fedora3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Randomize MAC address | |
Before=NetworkManager.service | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/macchanger -A wifidevicename | |
ExecStop=/usr/bin/true | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment