summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/drakxtv8
1 files changed, 6 insertions, 2 deletions
diff --git a/perl-install/standalone/drakxtv b/perl-install/standalone/drakxtv
index e7d35c227..00f0c43a0 100755
--- a/perl-install/standalone/drakxtv
+++ b/perl-install/standalone/drakxtv
@@ -140,8 +140,12 @@ You can install it by typing \"urpmi xawtv\" as root, in a console.")));
}
}
-
-if ( grep { $_->{media_type} eq 'MULTIMEDIA_VIDEO' } detect_devices::probeall(1)) {
+my @devices = detect_devices::probeall(1);
+if (grep { $_->{media_type} eq 'MULTIMEDIA_VIDEO' } @devices) {
+ if (($< == 0) && (grep { $_->{driver} eq 'bttv' } @devices)) {
+ use harddrake::bttv;
+ bttv::config($in);
+ }
scan4channels();
$in->exit(0);
} else {