From 80fa0e6b68f3341d64aef1d12a025f6054d7be54 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 5 Jul 2002 15:24:53 +0000 Subject: if we're root and there's a tv card managed by bttv, offer to configure bttv trough harddrake::bttv --- perl-install/standalone/drakxtv | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'perl-install/standalone/drakxtv') 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 { -- cgit v1.2.1