summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-20 14:32:23 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-20 14:32:23 +0000
commitf17e17f9e6ba006134cdf5f8386dd5f596394b2a (patch)
tree6c6997b049f3914673b9a8e40ee30a91b71c9a98 /perl-install/detect_devices.pm
parentf4e43902cede090b0e18b9f3210d7650bbf563c5 (diff)
downloaddrakx-f17e17f9e6ba006134cdf5f8386dd5f596394b2a.tar
drakx-f17e17f9e6ba006134cdf5f8386dd5f596394b2a.tar.gz
drakx-f17e17f9e6ba006134cdf5f8386dd5f596394b2a.tar.bz2
drakx-f17e17f9e6ba006134cdf5f8386dd5f596394b2a.tar.xz
drakx-f17e17f9e6ba006134cdf5f8386dd5f596394b2a.zip
(is_vmware) add infrastucture for detecting vmware
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 35349ee7c..78348856f 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -1099,6 +1099,10 @@ sub is_virtualbox() {
any { $_->{driver} eq 'vboxadd' } detect_devices::pci_probe();
}
+sub is_vmware() {
+ any { $_->{driver} =~ /Card:VMware/ } detect_devices::pci_probe();
+}
+
sub is_netbook_nettop() {
my @cpus = getCPUs();
(any { $_->{'model name'} =~ /(\bIntel\(R\) Atom\(TM\)\B)/i } @cpus) ||