Created
December 6, 2022 17:41
-
-
Save koomar/96b6d39f44aab8a27c025ac362885d49 to your computer and use it in GitHub Desktop.
Turns off awdl0 interface affecting wifi on Mac OSX
This file contains hidden or 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
#!/usr/bin/env bash | |
set -euo pipefail | |
while true; do | |
if ifconfig awdl0 |grep -q "<UP"; then | |
(set -x; ifconfig awdl0 down) | |
fi | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment