diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-01-06 22:48:08 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-01-06 22:48:08 +0000 |
commit | bb6492e7bf3b348808cc2102c840fc91a3bff7b0 (patch) | |
tree | 2b966cfe2b006a6cc66f575ee5f9995a787dc2ff /perl-install/standalone/mousedrake | |
parent | 5e2862087db257f94597369f6923eccc3ae6f419 (diff) | |
download | drakx-backup-do-not-use-bb6492e7bf3b348808cc2102c840fc91a3bff7b0.tar drakx-backup-do-not-use-bb6492e7bf3b348808cc2102c840fc91a3bff7b0.tar.gz drakx-backup-do-not-use-bb6492e7bf3b348808cc2102c840fc91a3bff7b0.tar.bz2 drakx-backup-do-not-use-bb6492e7bf3b348808cc2102c840fc91a3bff7b0.tar.xz drakx-backup-do-not-use-bb6492e7bf3b348808cc2102c840fc91a3bff7b0.zip |
no_comment
Diffstat (limited to 'perl-install/standalone/mousedrake')
-rwxr-xr-x | perl-install/standalone/mousedrake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/mousedrake b/perl-install/standalone/mousedrake index 1682295e1..c05ad5d99 100755 --- a/perl-install/standalone/mousedrake +++ b/perl-install/standalone/mousedrake @@ -18,9 +18,9 @@ $::isStandalone = 1; my $in = vnew interactive('su'); -my $mouse = mouse::detect() unless $::noauto; +my $mouse = eval { mouse::detect() } unless $::noauto; -if (!(my $name = $mouse->{FULLNAME}) || !$::auto) { +if (!(my $name = $mouse && $mouse->{FULLNAME}) || !$::auto) { $name ||= "Generic Mouse (serial)"; $name = $in->ask_from_list_('', _("What is the type of your mouse?"), [ mouse::names() ], $name); $mouse = mouse::name2mouse($name); |