summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-08-05 04:23:39 +0000
committerOlivier Blin <oblin@mandriva.org>2005-08-05 04:23:39 +0000
commit89a14b9204e0caad6d143949e0ea9c4cf2173df9 (patch)
tree519b1c93edb0466e653010a6b5faa993c93c86cb /perl-install/detect_devices.pm
parent6d1a9d2a8eb719e5ff0e3ea3517b3e59075f306c (diff)
downloaddrakx-backup-do-not-use-89a14b9204e0caad6d143949e0ea9c4cf2173df9.tar
drakx-backup-do-not-use-89a14b9204e0caad6d143949e0ea9c4cf2173df9.tar.gz
drakx-backup-do-not-use-89a14b9204e0caad6d143949e0ea9c4cf2173df9.tar.bz2
drakx-backup-do-not-use-89a14b9204e0caad6d143949e0ea9c4cf2173df9.tar.xz
drakx-backup-do-not-use-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.pm5
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;