Model: Add BSD support

This commit is contained in:
Dylan Araps 2016-08-19 10:39:12 +10:00
parent 3461b2a029
commit a96420e067

View file

@ -84,6 +84,10 @@ getmodel() {
esac
;;
"BSD")
model="$(sysctl -n hw.vendor hw.product 2>/dev/null)"
;;
"Windows")
model="$(wmic computersystem get manufacturer,model /value)"
model="${model/Manufacturer'='}"