diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-03-20 14:32:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-03-20 14:32:23 +0000 |
commit | f17e17f9e6ba006134cdf5f8386dd5f596394b2a (patch) | |
tree | 6c6997b049f3914673b9a8e40ee30a91b71c9a98 /perl-install | |
parent | f4e43902cede090b0e18b9f3210d7650bbf563c5 (diff) | |
download | drakx-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/NEWS | 2 | ||||
-rw-r--r-- | perl-install/detect_devices.pm | 4 |
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) || |