summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-07-05 15:24:53 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-07-05 15:24:53 +0000
commit80fa0e6b68f3341d64aef1d12a025f6054d7be54 (patch)
tree60076bf476b397701a571e86c69c21eabacb6113
parent8d6f44255141d698bf45ac18446e30e3693d9b45 (diff)
downloaddrakx-backup-do-not-use-80fa0e6b68f3341d64aef1d12a025f6054d7be54.tar
drakx-backup-do-not-use-80fa0e6b68f3341d64aef1d12a025f6054d7be54.tar.gz
drakx-backup-do-not-use-80fa0e6b68f3341d64aef1d12a025f6054d7be54.tar.bz2
drakx-backup-do-not-use-80fa0e6b68f3341d64aef1d12a025f6054d7be54.tar.xz
drakx-backup-do-not-use-80fa0e6b68f3341d64aef1d12a025f6054d7be54.zip
if we're root and there's a tv card managed by bttv, offer to
configure bttv trough harddrake::bttv
-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 {