Skip to content

Instantly share code, notes, and snippets.

@koomar
Created December 6, 2022 17:41
Show Gist options
  • Save koomar/96b6d39f44aab8a27c025ac362885d49 to your computer and use it in GitHub Desktop.
Save koomar/96b6d39f44aab8a27c025ac362885d49 to your computer and use it in GitHub Desktop.
Turns off awdl0 interface affecting wifi on Mac OSX
#!/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