mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-11 00:20:05 +00:00
Fix CPU name on android
This commit is contained in:
2
neofetch
2
neofetch
@@ -637,7 +637,7 @@ getcpu() {
|
||||
case "$os" in
|
||||
"Linux" | "Windows")
|
||||
# Get cpu name
|
||||
cpu="$(awk -F ': | @' '/model name/ {printf $2; exit}' /proc/cpuinfo)"
|
||||
cpu="$(awk -F ': | @' '/model name|Processor/ {printf $2; exit}' /proc/cpuinfo)"
|
||||
|
||||
# Get cpu speed
|
||||
if [ -d "/sys/devices/system/cpu/cpu0/cpufreq" ]; then
|
||||
|
||||
Reference in New Issue
Block a user