Model: Small fix

This commit is contained in:
Dylan Araps 2016-11-14 00:43:58 +11:00
parent 47e450cf3c
commit 200a4ca46e

View file

@ -45,8 +45,8 @@ get_model() {
if [[ -d "/system/app/" && -d "/system/priv-app" ]]; then if [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
model="$(getprop ro.product.brand) $(getprop ro.product.model)" model="$(getprop ro.product.brand) $(getprop ro.product.model)"
elif [[ -f /sys/devices/virtual/dmi/id/product_name ]] ||\ elif [[ -f /sys/devices/virtual/dmi/id/product_name ||
[[ -f /sys/devices/virtual/dmi/id/product_version ]]; then -f /sys/devices/virtual/dmi/id/product_version ]]; then
model="$(< /sys/devices/virtual/dmi/id/product_name)" model="$(< /sys/devices/virtual/dmi/id/product_name)"
model+=" $(< /sys/devices/virtual/dmi/id/product_version)" model+=" $(< /sys/devices/virtual/dmi/id/product_version)"
model="${model/To Be Filled*}" model="${model/To Be Filled*}"