Skip to content

Instantly share code, notes, and snippets.

@StayPirate
Created December 9, 2019 12:47
Show Gist options
  • Save StayPirate/5747802b06a06dd538e1d11cdcc0d9e6 to your computer and use it in GitHub Desktop.
Save StayPirate/5747802b06a06dd538e1d11cdcc0d9e6 to your computer and use it in GitHub Desktop.
Change macaddr at boot using macchanger
[Unit]
Description=macchanger on %I
Wants=network-pre.target
Before=network-pre.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
ExecStart=/usr/bin/macchanger -m 54:e1:ad:9b:71:e4 %I
Type=oneshot
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment