From efda5d58894ee4ff5e07bc5b98a428bf243356cd Mon Sep 17 00:00:00 2001 From: Stew Benedict Date: Fri, 18 Feb 2005 19:53:16 +0000 Subject: Detect XBox, don't probe for floppy on XBox. --- perl-install/detect_devices.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'perl-install/detect_devices.pm') diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 165b7a6b8..7fb9575cd 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -56,7 +56,7 @@ sub floppies() { my @fds; my @dmis = dmidecode(); # do not try to load floppy if there's no floppy drive: - if ($::isInstall || !@dmis || find { $_->{'Internal Reference Designator'} =~ /^(FLOPPY|FDD)$/ && $_->{name} eq 'Port Connector' } @dmis) { + if (!is_xbox() && ($::isInstall || !@dmis || find { $_->{'Internal Reference Designator'} =~ /^(FLOPPY|FDD)$/ && $_->{name} eq 'Port Connector' } @dmis)) { eval { modules::load("floppy") if $::isInstall }; if (!$@) { @fds = map { @@ -784,6 +784,10 @@ sub get_mac_generation() { cat_('/proc/cpuinfo') =~ /^pmac-generation\s*:\s*(.*)/m ? $1 : "Unknown Generation"; } +sub is_xbox() { + return any { $_->{vendor} . $_->{id} == hex('10de') . hex('02a5') } detect_devices::pci_probe(); +} + sub hasSMP() { return if $::testing; c::detectSMP() || any { /\bProcessor #(\d+)\s+(\S*)/ && $1 > 0 && $2 ne 'invalid' } syslog(); -- cgit v1.2.1