Created
December 23, 2020 04:54
-
-
Save lingsamuel/ee71a4a2a02fbd091772bca10f1dc35a to your computer and use it in GitHub Desktop.
mac changer unit file: systemctl enable changemac@eth0
This file contains 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=Change mac for %I | |
Wants=network.target | |
Before=network.target | |
BindsTo=sys-subsystem-net-devices-%i.device | |
After=sys-subsystem-net-devices-%i.device | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/macchanger --mac=aa:bb:cc:dd:ee:ff %I | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment