Forgot to add the actual combining of the model and cpu vars.

This commit is contained in:
Brett Bohnenkamper
2013-06-13 18:40:44 -05:00
parent 2e0c3ef2a6
commit cd7b941b27

View File

@@ -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