Model: Added Windows support

This commit is contained in:
Dylan Araps 2016-08-14 15:23:19 +10:00
parent f805623171
commit 3461b2a029

View file

@ -83,6 +83,12 @@ getmodel() {
"ipod7,1") model="iPod touch 6G" ;;
esac
;;
"Windows")
model="$(wmic computersystem get manufacturer,model /value)"
model="${model/Manufacturer'='}"
model="${model/Model'='}"
;;
esac
}