From c45e5ab01008022dfb638f74cbedb41475e64e5d Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 28 Sep 2007 15:07:07 +0000 Subject: allow to detect VirtualBox guest systems --- perl-install/detect_devices.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'perl-install/detect_devices.pm') 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; -- cgit v1.2.1