Skip to content

Instantly share code, notes, and snippets.

@acodega
Last active March 19, 2019 15:03
Show Gist options
  • Save acodega/0d0bebbdabbf99ac6d4abc22bb2c5359 to your computer and use it in GitHub Desktop.
Save acodega/0d0bebbdabbf99ac6d4abc22bb2c5359 to your computer and use it in GitHub Desktop.
#!/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