summaryrefslogtreecommitdiffstats
path: root/perl-install/mouse.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/mouse.pm')
-rw-r--r--perl-install/mouse.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm
index 3366e0807..d942c54c2 100644
--- a/perl-install/mouse.pm
+++ b/perl-install/mouse.pm
@@ -150,7 +150,7 @@ sub serial_port2text {
sub read {
my ($prefix) = @_;
my %mouse = getVarsFromSh "$prefix/etc/sysconfig/mouse";
- add2hash_(\%mouse, fullname2mouse($mouse{FULLNAME}));
+ eval { add2hash_(\%mouse, fullname2mouse($mouse{FULLNAME})) };
$mouse{device} = readlink "$prefix/dev/mouse" or log::l("reading $prefix/dev/mouse symlink failed");
$mouse{nbuttons} = $mouse{XEMU3} eq "yes" ? 2 : $mouse{WHEEL} eq "yes" ? 5 : 3;
\%mouse;