diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-08-05 04:23:39 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-08-05 04:23:39 +0000 |
commit | 89a14b9204e0caad6d143949e0ea9c4cf2173df9 (patch) | |
tree | 519b1c93edb0466e653010a6b5faa993c93c86cb /perl-install/detect_devices.pm | |
parent | 6d1a9d2a8eb719e5ff0e3ea3517b3e59075f306c (diff) | |
download | drakx-89a14b9204e0caad6d143949e0ea9c4cf2173df9.tar drakx-89a14b9204e0caad6d143949e0ea9c4cf2173df9.tar.gz drakx-89a14b9204e0caad6d143949e0ea9c4cf2173df9.tar.bz2 drakx-89a14b9204e0caad6d143949e0ea9c4cf2173df9.tar.xz drakx-89a14b9204e0caad6d143949e0ea9c4cf2173df9.zip |
move is_xbox from common to detect_devices
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; |