diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-03-31 00:53:30 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-03-31 00:53:30 -0400 |
commit | 0a926fa10021878c61f00131f2e32aa7ef49a511 (patch) | |
tree | 326aead4d8c3077b359a9f4972ecc4af5fce0fd8 /bin | |
parent | 4dd9bee484a302e4ebbc1e789628964b856999a7 (diff) | |
download | conf-0a926fa10021878c61f00131f2e32aa7ef49a511.tar.gz conf-0a926fa10021878c61f00131f2e32aa7ef49a511.zip |
helper to set wifi mac address
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/set-mac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/set-mac b/bin/set-mac new file mode 100755 index 0000000..2ac367b --- /dev/null +++ b/bin/set-mac @@ -0,0 +1,10 @@ +#!/bin/sh +set -eu + +link() { + sudo ip link set dev wlp3s0 "$@" +} + +link down +link address "$1" +link up |