summaryrefslogtreecommitdiffstats
path: root/perl-install
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
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')
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/detect_devices.pm4
2 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 26d947114..cc08b41c8 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- add infrastucture for detecting vmware
+
Version 12.16 - 18 March 2009
- handle new drivers:
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) ||