mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-04-24 03:00:16 -04:00
Fix detection of PowerPC G3 to be more exact instead of triggering on UltraSparcs (issue #103).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user