summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-28 15:07:07 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-28 15:07:07 +0000
commitc45e5ab01008022dfb638f74cbedb41475e64e5d (patch)
tree0a9ec9ab9362f24aa5c548b57e99493e8b565624 /perl-install
parent650e90d324fc9a376862061bc8d91e01fcbabedc (diff)
downloaddrakx-c45e5ab01008022dfb638f74cbedb41475e64e5d.tar
drakx-c45e5ab01008022dfb638f74cbedb41475e64e5d.tar.gz
drakx-c45e5ab01008022dfb638f74cbedb41475e64e5d.tar.bz2
drakx-c45e5ab01008022dfb638f74cbedb41475e64e5d.tar.xz
drakx-c45e5ab01008022dfb638f74cbedb41475e64e5d.zip
allow to detect VirtualBox guest systems
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/detect_devices.pm4
2 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 9cdd9079e..609281344 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,4 +1,5 @@
- add back ipw3945 module in wireless modules list
+- allow to detect VirtualBox guest systems
Version 10.4.217 - 27 September 2007, by Thierry Vignaud
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 1c2621e09..acfaab9c7 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -1066,6 +1066,10 @@ sub is_xbox() {
any { $_->{vendor} == 0x10de && $_->{id} == 0x02a5 } pci_probe();
}
+sub is_virtualbox() {
+ any { $_->{driver} eq 'vboxadd' } detect_devices::pci_probe();
+}
+
sub has_cpu_flag {
my ($flag) = @_;
cat_('/proc/cpuinfo') =~ /^flags.*\b$flag\b/m;