From db9344149320870fd92d24b704f673e4880b2b6a Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 15 Sep 2000 21:26:17 +0000 Subject: no_comment --- perl-install/detect_devices.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'perl-install/detect_devices.pm') diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 8ae0ca346..319975db3 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -307,12 +307,8 @@ sub hasModem($) { $serialprobe{$_[0]} and $serialprobe{$_[0]}{CLASS} eq 'MODEM' and $serialprobe{$_[0]}{DESCRIPTION}; } -sub hasMousePS2() { - my $t; sysread(tryOpen("psaux") || return, $t, 256) != 1 || $t ne "\xFE"; -} - -sub hasMouseMacUSB { - my $t; sysread(tryOpen("usbmouse") || return, $t, 256) != 1 || $t ne "\xFE"; +sub hasMousePS2 { + my $t; sysread(tryOpen($_[0]) || return, $t, 256) != 1 || $t ne "\xFE"; } #-###################################################################################### -- cgit v1.2.1