From a6a904a31e39b74144c53f0cc4086d496b70c09a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 9 Jul 2002 13:18:50 +0000 Subject: log only if options set --- perl-install/harddrake/bttv.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/perl-install/harddrake/bttv.pm b/perl-install/harddrake/bttv.pm index c18cf705e..4bc6cb63c 100644 --- a/perl-install/harddrake/bttv.pm +++ b/perl-install/harddrake/bttv.pm @@ -204,9 +204,11 @@ If your card is misdetected, you can force the right tuner and card types here. my $options = 'radio=' . ($conf{radio} ? 1 : 0) . ' '. join(' ', map { if_($conf{$_} ne -1, "$_=$conf{$_}") } qw(card pll tuner gbuffers)); - log::l("[harddrake::bttv] $options"); - standalone::explanations("modified file /etc/modules.conf ($options)") if $::isStandalone; - modules::set_options("bttv", $options) if $options; + if ($options) { + log::l("[harddrake::bttv] $options"); + standalone::explanations("modified file /etc/modules.conf ($options)") if $::isStandalone; + modules::set_options("bttv", $options); + } } } -- cgit v1.2.1