Fix detection of PowerPC G3 to be more exact instead of triggering on UltraSparcs (issue #103).

This commit is contained in:
Nathan Phillip Brink
2014-01-09 05:02:07 +00:00
parent 6eb0372836
commit 0bbea577ca

View File

@@ -763,12 +763,12 @@ detectcpu () {
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 "
elif [[ $cpu =~ 740/750 ]]; then
model="IBM PowerPC G3 "
elif [[ $cpu =~ ^74.+ ]]; then
model="Motorola PowerPC G4 "
elif [[ "$(cat /proc/cpuinfo)" =~ "BCM2708" ]]; then
model="Broadcom BCM2835 ARM1176JZF-S"
else
model="IBM PowerPC G3 "
fi
cpu="${model}${cpu}"
fi