From 25d8e2f10e402c948e7b305347832b7e817e9144 Mon Sep 17 00:00:00 2001 From: Thandi M Date: Fri, 18 Nov 2022 00:16:31 -0500 Subject: [PATCH] Changed to model/host function --- neofetch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index 310dd9ab..1bdb109b 100755 --- a/neofetch +++ b/neofetch @@ -1363,16 +1363,16 @@ get_model() { if [[ -d /android/system/ || -d /system/app/ ]]; then model="$(getprop ro.product.brand) $(getprop ro.product.model)" - elif [[ -f /sys/devices/virtual/dmi/id/board_vendor || - -f /sys/devices/virtual/dmi/id/board_name ]]; then - model=$(< /sys/devices/virtual/dmi/id/board_vendor) - model+=" $(< /sys/devices/virtual/dmi/id/board_name)" - elif [[ -f /sys/devices/virtual/dmi/id/product_name || -f /sys/devices/virtual/dmi/id/product_version ]]; then model=$(< /sys/devices/virtual/dmi/id/product_name) model+=" $(< /sys/devices/virtual/dmi/id/product_version)" + elif [[ -f /sys/devices/virtual/dmi/id/board_vendor || + -f /sys/devices/virtual/dmi/id/board_name ]]; then + model=$(< /sys/devices/virtual/dmi/id/board_vendor) + model+=" $(< /sys/devices/virtual/dmi/id/board_name)" + elif [[ -f /sys/firmware/devicetree/base/model ]]; then model=$(< /sys/firmware/devicetree/base/model)