diff options
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 7b03bd391..7855019f1 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -905,6 +905,11 @@ sub is_i586() { $cpuinfo =~ /^cpu family\s*:\s*(\d+)/m && $1 < 6 || !has_cpu_flag('cmov'); } + +sub is_xbox() { + any { $_->{vendor} == 0x10de && $_->{id} == 0x02a5 } detect_devices::pci_probe(); +} + sub has_cpu_flag { my ($flag) = @_; cat_('/proc/cpuinfo') =~ /^flags.*\b$flag\b/m; |