Commit 200a4ca4 authored by Dylan Araps's avatar Dylan Araps

Model: Small fix

parent 47e450cf
...@@ -45,8 +45,8 @@ get_model() { ...@@ -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*}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment