mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-01-14 08:48:03 -05:00
Forgot to add the actual combining of the model and cpu vars.
This commit is contained in:
@@ -694,12 +694,13 @@ detectcpu () {
|
||||
if [ -z "$cpu" ]; then
|
||||
cpu=$(awk 'BEGIN{FS=":"} /^cpu/ { gsub(/ +/," ",$2); print $2; exit}' /proc/cpuinfo | sed 's/, altivec supported//;s/^ //')
|
||||
if [[ $cpu =~ ^(PPC)*9.+ ]]; then
|
||||
model="IBM PowerPC G5"
|
||||
model="IBM PowerPC G5 "
|
||||
elif [[ $cpu =~ ^74.+ ]]; then
|
||||
model="Motorola PowerPC G4"
|
||||
model="Motorola PowerPC G4 "
|
||||
else
|
||||
model="IBM PowerPC G3"
|
||||
model="IBM PowerPC G3 "
|
||||
fi
|
||||
cpu="${model}${cpu}"
|
||||
fi
|
||||
loc="/sys/devices/system/cpu/cpu0/cpufreq"
|
||||
if [ -f $loc/bios_limit ];then
|
||||
|
||||
Reference in New Issue
Block a user