Added Solaris support for model

This commit is contained in:
Muhammad Herdiansyah 2016-08-14 17:41:09 +07:00
parent 3461b2a029
commit 346bff1c52

View file

@ -89,6 +89,10 @@ getmodel() {
model="${model/Manufacturer'='}"
model="${model/Model'='}"
;;
"Solaris")
model="$(prtconf -b | awk -F':' '/banner-name/ {printf $2}')"
;;
esac
}