diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-07-05 15:24:53 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-07-05 15:24:53 +0000 |
commit | 80fa0e6b68f3341d64aef1d12a025f6054d7be54 (patch) | |
tree | 60076bf476b397701a571e86c69c21eabacb6113 /perl-install | |
parent | 8d6f44255141d698bf45ac18446e30e3693d9b45 (diff) | |
download | drakx-80fa0e6b68f3341d64aef1d12a025f6054d7be54.tar drakx-80fa0e6b68f3341d64aef1d12a025f6054d7be54.tar.gz drakx-80fa0e6b68f3341d64aef1d12a025f6054d7be54.tar.bz2 drakx-80fa0e6b68f3341d64aef1d12a025f6054d7be54.tar.xz drakx-80fa0e6b68f3341d64aef1d12a025f6054d7be54.zip |
if we're root and there's a tv card managed by bttv, offer to
configure bttv trough harddrake::bttv
Diffstat (limited to 'perl-install')
-rwxr-xr-x | perl-install/standalone/drakxtv | 8 |
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 { |