浏览代码

Add model detection for Ubuntu Touch

walking-octopus 3 年之前
父节点
当前提交
5cab401189
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      neofetch

+ 1 - 1
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 ||