Also include product name

This commit is contained in:
Dylan Araps 2016-08-19 11:15:13 +10:00
parent 26af24dcc6
commit 4b4b0437d9
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ getos() {
getmodel() {
case "$os" in
"Linux")
model="$(< /sys/devices/virtual/dmi/id/product_version)"
model="$(< /sys/devices/virtual/dmi/id/product_{name,version} 2>/dev/null)"
model="${model/To Be Filled*}"
;;