summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-11-06 14:09:31 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-11-06 14:09:31 +0000
commit63b64f0a134be8d6a054297c3d1c83571dbc91aa (patch)
tree2c140a1a2cae33c573bd0ab9d86575d489bf3ccf /perl-install/detect_devices.pm
parentd4c48e8a8f0c4213dc6fb0fdaa606c1f50417430 (diff)
downloaddrakx-backup-do-not-use-63b64f0a134be8d6a054297c3d1c83571dbc91aa.tar
drakx-backup-do-not-use-63b64f0a134be8d6a054297c3d1c83571dbc91aa.tar.gz
drakx-backup-do-not-use-63b64f0a134be8d6a054297c3d1c83571dbc91aa.tar.bz2
drakx-backup-do-not-use-63b64f0a134be8d6a054297c3d1c83571dbc91aa.tar.xz
drakx-backup-do-not-use-63b64f0a134be8d6a054297c3d1c83571dbc91aa.zip
no_comment
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 8bee5e612..f03bbd596 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -219,9 +219,13 @@ sub hasModem($) {
}
sub hasMousePS2() {
- my $f = detect_devices::tryOpen("psaux");
- my $t; sysread($f, $t, 256) or return;
- $t eq "\xFE";
+ my $t; sysread(tryOpen("psaux"), $t, 1) != 1 || $t ne "\xFE";
+}
+
+sub hasMouseUSB(;$) {
+ my @modules = map { "usb-$_" } qw(uhci ohci ohci-hcd);
+ my ($first) = @_;
+# modprobe(
}
#-######################################################################################