From a7ba1a2526952c68ad61923133c76f268c1011b7 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 22 Sep 2003 14:56:14 +0000 Subject: dmi doesn't detect ht, but acpi does, so use it --- perl-install/detect_devices.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index a8c2d2d39..d718c0071 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -584,7 +584,10 @@ sub get_mac_generation() { return "Unknown Generation"; } -sub hasSMP() { !$::testing && c::detectSMP() } +sub hasSMP() { + return if $::testing; + c::detectSMP() || any { /\bProcessors: (\d+)/ && $1 > 1 } syslog(); +} sub hasPCMCIA() { $::o->{pcmcia} } #- because /proc/pcmcia seems not to be present on 2.4 at least (or use /var/run/stab) #- try to detect a laptop, we assume pcmcia service is an indication of a laptop or -- cgit v1.2.1