@darthmaverick I can't remeber where I have found it (to aknowledge the original scripter credits)
No built-in EA, I use one created with the script below which detects the kind of chip present on the machine (result is blank if not present a T1/T2 chip)
Hope it helps
Ciao
Carlo
#!/bin/bash
Chip="$(/usr/sbin/system_profiler SPiBridgeDataType | /usr/bin/grep 'Model Name' | awk '{ for (i=3; i<=NF; i++) printf("%s ",$i) }END{ print"" }')"
echo "<result>$Chip</result>"
Would it not just be in devices before x date as z model, Or are you trying to do something different?
Thanks @carlo_anselmi for the SPiBridgeDataType key! That awk statement looks scary though so I found one that I understand a bit better using the -F flag to set the field separator then matching the first field and printing the second.
system_profiler SPiBridgeDataType |
awk -F ': ' 'tolower($1) ~ "model name" {print "<result>"$2"</result>"}'