diff --git a/processor_detection.4 b/processor_detection.4 index 0fe5bf2..9feb165 100644 --- a/processor_detection.4 +++ b/processor_detection.4 @@ -35,6 +35,11 @@ if [ "$subtype" = "android" ]; then processor="$(getprop ro.hardware.chipname)" fi fi +if [ "$hasawk" -eq 1 ] && [ "$system_type" = "illumos" ] && [ -z "$processor" ]; then + if [ -n "$(kstat | grep brand") ]; then + processor="$(kstat | grep brand | head -n 1 | tr -s " " | awk -F "brand " '{print $2}')" + fi +fi if [ "$hassed" -eq 1 ] && [ "$hasawk" -eq 1 ] && [ -n "$processor" ]; then if [ -n "$(echo $processor | awk -F "@" '{print $1}' | sed "s/Processor//g" | sed "s/CPU//g" | sed "s/(R)//g" | sed "s/(r)//g" | sed "s/(TM)//g" | sed "s/(tm)//g" | tr -s " ")" ]; then processor="$(echo $processor | awk -F "@" '{print $1}' | sed "s/Processor//g" | sed "s/CPU//g" | sed "s/(R)//g" | sed "s/(r)//g" | sed "s/(TM)//g" | sed "s/(tm)//g" | tr -s " ")"