Skip to content

Instantly share code, notes, and snippets.

@timofurrer
Created July 11, 2019 12:53
Show Gist options
  • Save timofurrer/480837de20bb62f0506cb3e95bf67230 to your computer and use it in GitHub Desktop.
Save timofurrer/480837de20bb62f0506cb3e95bf67230 to your computer and use it in GitHub Desktop.
systemd service unit to fake mac address upon boot.
[Unit]
Description=macchanger
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 -e %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