Merge pull request #313 from konimex/model2

Added Solaris support for model
This commit is contained in:
Dylan Araps 2016-08-14 21:47:23 +10:00 committed by GitHub
commit a21d71e3ce
1 changed files with 4 additions and 0 deletions

View File

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