diff options
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 8 |
1 files changed, 2 insertions, 6 deletions
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"; } #-###################################################################################### |