Created
November 28, 2021 16:45
-
-
Save macmule/e1f2ce800fc86c0fb3c507cfaecf1462 to your computer and use it in GitHub Desktop.
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
| #!/bin/sh | |
| #################################################################################################### | |
| # | |
| # License: https://macmule.com/license/ | |
| # | |
| #################################################################################################### | |
| # Checks to see if their is a hardware port called AirPort or Wi-Fi | |
| checkWireless=$(networksetup -listallhardwareports | egrep "Hardware Port: (Air|Wi-)" | awk '{ print $3 }') | |
| if [ -z "$checkWireless" ]; | |
| then | |
| echo "<result>No</result>" | |
| else | |
| echo "<result>Yes</result>" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment