Last active
March 19, 2019 15:03
-
-
Save acodega/0d0bebbdabbf99ac6d4abc22bb2c5359 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
ibridge="$(/usr/sbin/system_profiler SPiBridgeDataType | /usr/bin/grep 'Model Name')" | |
if [[ "$ibridge" == "" ]] ; | |
then | |
defaults write /Library/Preferences/org.myorg.machineDetails.plist awesomechip -string "None" | |
else | |
defaults write /Library/Preferences/org.myorg.machineDetails.plist awesomechip -string "$ibridge" | |
fi | |
exit 0 | |
#!/bin/bash | |
ibridge="$(defaults read /Library/Preferences/org.myorg.machineDetails.plist awesomechip)" | |
/bin/echo "<result>$ibridge</result>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment