diff options
Diffstat (limited to 'perl-install/mouse.pm')
-rw-r--r-- | perl-install/mouse.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm index af0a35a79..2382f9f1e 100644 --- a/perl-install/mouse.pm +++ b/perl-install/mouse.pm @@ -172,11 +172,10 @@ sub detect() { eval { commands::modprobe("serial") }; my ($r, $wacom) = mouseconfig(); return ($r, $wacom) if $r; - if (modules::get_alias("usb-interface")) { + if (modules::get_alias("usb-interface") && detect_devices::hasUsbMouse()) { eval { modules::load("usbmouse"); modules::load("mousedev"); - sleep(2); }; if (!$@ && detect_devices::tryOpen("usbmouse")) { $wacom or modules::unload("serial"); |