summaryrefslogtreecommitdiffstats
path: root/perl-install/mouse.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-02-17 13:01:39 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-02-17 13:01:39 +0000
commit3b855af417a8c3bb917fee6026814594793eb627 (patch)
tree49e1f7ca58d95fd922f23eaa1f536c4b9d44dc5b /perl-install/mouse.pm
parentb90b583b6fde083ed0b79185edb77d7c520e1944 (diff)
downloaddrakx-3b855af417a8c3bb917fee6026814594793eb627.tar
drakx-3b855af417a8c3bb917fee6026814594793eb627.tar.gz
drakx-3b855af417a8c3bb917fee6026814594793eb627.tar.bz2
drakx-3b855af417a8c3bb917fee6026814594793eb627.tar.xz
drakx-3b855af417a8c3bb917fee6026814594793eb627.zip
fix mouse detect() on kernel 2.4
Diffstat (limited to 'perl-install/mouse.pm')
-rw-r--r--perl-install/mouse.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm
index 4ffcae23e..e4949913b 100644
--- a/perl-install/mouse.pm
+++ b/perl-install/mouse.pm
@@ -311,7 +311,9 @@ sub detect() {
} else {
log::l("no usb interface found for mice");
}
- return { wacom => \@wacom, %$ps2_mouse };
+ if ($ps2_mouse) {
+ return { wacom => \@wacom, %$ps2_mouse };
+ }
}
#- probe serial device to make sure a wacom has been detected.