Skip to content

Instantly share code, notes, and snippets.

@dderusha
Created July 9, 2015 13:44
Show Gist options
  • Save dderusha/cdfdf712456ae164ba3e to your computer and use it in GitHub Desktop.
Save dderusha/cdfdf712456ae164ba3e to your computer and use it in GitHub Desktop.
iBeacon Ready
#!/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