From 63b64f0a134be8d6a054297c3d1c83571dbc91aa Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 6 Nov 1999 14:09:31 +0000 Subject: no_comment --- perl-install/detect_devices.pm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'perl-install/detect_devices.pm') 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( } #-###################################################################################### -- cgit v1.2.1