summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-07-05 12:59:23 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-07-05 12:59:23 +0000
commitb3eef895ff1a34ed70284d829114288ad099a2c5 (patch)
treec78c26fe2fc09052c9eb2c9b427bc82d2366fa7f
parentc450cb4b6b1d7ef491b59f036fc26b7634fa9af4 (diff)
downloaddrakx-b3eef895ff1a34ed70284d829114288ad099a2c5.tar
drakx-b3eef895ff1a34ed70284d829114288ad099a2c5.tar.gz
drakx-b3eef895ff1a34ed70284d829114288ad099a2c5.tar.bz2
drakx-b3eef895ff1a34ed70284d829114288ad099a2c5.tar.xz
drakx-b3eef895ff1a34ed70284d829114288ad099a2c5.zip
minimize startup: only load harddrake::bttv if the user click on "tv
card" field in the hw summary window
-rw-r--r--perl-install/install_steps_interactive.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 314ba2225..ae2ec26d7 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -47,7 +47,6 @@ use install_steps;
use install_interactive;
use install_any;
use detect_devices;
-use harddrake::bttv;
use run_program;
use devices;
use fsedit;
@@ -1030,7 +1029,7 @@ sub summary {
} @sound_cards),
if_($isa_sound_card, { label => _("Sound card"), clicked => $isa_sound_card }),
(map {
-{ label => _("TV card"), val => $_->{description}, clicked => \&bttv::config()}
+{ label => _("TV card"), val => $_->{description}, clicked => sub { use harddrake::bttv; bttv::config($o) }}
} grep { $_->{driver} eq 'bttv' } detect_devices::probeall()),
]);
install_steps::configureTimezone($o); #- do not forget it.