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