Last active
October 14, 2021 10:56
-
-
Save andrewp-as-is/270c1953a62f62eeb2fb0414f9723321 to your computer and use it in GitHub Desktop.
macOS Wi-Fi #macos
This file contains 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/sbin/networksetup -getairportpower en1 # On/Off | |
/usr/sbin/networksetup -getairportpower en1 | grep -iq "On" | |
# /usr/sbin/networksetup -setairportpower en0 on | |
# /usr/sbin/networksetup -setairportpower en0 off | |
export PATH="/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources":$PATH | |
airport -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment