From 0aed5c54861fab8a15a590f276e0ff25dfe0394a Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 12 Nov 2000 17:12:28 +0000 Subject: fix for bug #1350 (mousedrake dies with: Undefined subroutine &mouse::serial_ports_names) --- perl-install/standalone/mousedrake | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'perl-install/standalone/mousedrake') diff --git a/perl-install/standalone/mousedrake b/perl-install/standalone/mousedrake index e1d3456b7..5736f79ee 100755 --- a/perl-install/standalone/mousedrake +++ b/perl-install/standalone/mousedrake @@ -36,10 +36,11 @@ if (!$mouse || !$::auto) { $mouse->{XEMU3} = 'yes' if $mouse->{nbuttons} < 3 && (!$::noauto || $in->ask_yesorno('', _("Emulate third button?"), 1)); -$mouse->{device} = mouse::serial_ports_names2dev( - $in->ask_from_list(_("Mouse Port"), - _("Which serial port is your mouse connected to?"), - [ mouse::serial_ports_names() ])) if $mouse->{type} eq 'serial'; +$o->{mouse}{device} = + $o->ask_from_listf(_("Mouse Port"), + _("Please choose on which serial port your mouse is connected to."), + \&mouse::serial_port2text, + [ mouse::serial_ports ]) if $mouse->{type} eq 'serial'; mouse::write('', $mouse); modules::write_conf('') if $mouse->{device} eq "usbmouse" && !$::testing; -- cgit v1.2.1