From 5cab4011890f6e247a95a4d38b010f1490bfc03f Mon Sep 17 00:00:00 2001 From: walking-octopus <46994949+walking-octopus@users.noreply.github.com> Date: Sun, 31 Jul 2022 09:15:49 +0000 Subject: [PATCH 1/2] Add model detection for Ubuntu Touch --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index fe8911bb..c2fc3f8a 100755 --- a/neofetch +++ b/neofetch @@ -1244,7 +1244,7 @@ get_distro() { get_model() { case $os in Linux) - if [[ -d /system/app/ && -d /system/priv-app ]]; then + if [[ -d /usr/bin/system-image-cli || -d /system/app/ ]]; then model="$(getprop ro.product.brand) $(getprop ro.product.model)" elif [[ -f /sys/devices/virtual/dmi/id/board_vendor || From a1e99aa0d3bb58ba1ae6d54aefaceb3036c2ee66 Mon Sep 17 00:00:00 2001 From: walking-octopus <46994949+walking-octopus@users.noreply.github.com> Date: Sun, 31 Jul 2022 10:28:20 +0000 Subject: [PATCH 2/2] Fix the model fetching --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index c2fc3f8a..4545a6f7 100755 --- a/neofetch +++ b/neofetch @@ -1244,7 +1244,7 @@ get_distro() { get_model() { case $os in Linux) - if [[ -d /usr/bin/system-image-cli || -d /system/app/ ]]; then + 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 ||