I hereby claim:
- I am o-kotb on github.
- I am omarkotb (https://keybase.io/omarkotb) on keybase.
- I have a public key whose fingerprint is 2808 DAE7 CF7F 8E54 7057 D30F 8702 ED89 D033 AA5B
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| for nmprofile in /etc/NetworkManager/system-connections/*; do | |
| # check if a cloned mac was already set | |
| if grep -q "cloned-mac-address" "$nmprofile"; then | |
| echo "$(basename "$nmprofile") already has a cloned mac address. No changes." | |
| else | |
| # If it doesn't have a [wifi] section, it's not a wifi network | |
| if grep -q "\[wifi\]" "$nmprofile"; then | |
| sed -i '/\[wifi\]/a cloned-mac-address=preserve' "$nmprofile" |