Created
July 9, 2015 13:44
-
-
Save dderusha/cdfdf712456ae164ba3e to your computer and use it in GitHub Desktop.
iBeacon Ready
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/sh | |
# | |
############################################################################ | |
# | |
# Extension Attribute checks to display Bluetooth 4.0 compatability | |
# 0x3 - too old | |
# 0x4 - too old | |
# 0x6 - compatible | |
# | |
############################################################################ | |
if [ -d /Library/Internet\ Plug-Ins/Flash\ Player.plugin ] ; then | |
bluetoothVer=$( system_profiler -detailLevel full SPBluetoothDataType | grep 'LMP Version:' | awk '{print $3}' ) | |
echo "<result>$bluetoothVer</result>" | |
else | |
# the number 88 is just a placeholder for "No Return" | |
echo "<result>88</result>" | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment