From b75714484ec718e1982cee0484ee699518e8c9e1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 19 Feb 2003 14:20:29 +0000 Subject: workaround a drakx bug which don't always add bttv to /etc/modules --- perl-install/standalone/drakxtv | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl-install/standalone/drakxtv') diff --git a/perl-install/standalone/drakxtv b/perl-install/standalone/drakxtv index 515af17a9..c691c421c 100755 --- a/perl-install/standalone/drakxtv +++ b/perl-install/standalone/drakxtv @@ -112,6 +112,8 @@ You can install it by typing \"urpmi xawtv\" as root, in a console."))); # Note that this'll be broken if/when we implement interactive::qt my $use_X = $in->isa('interactive::gtk') && -x "/usr/X11R6/bin/xvt"; my $home = $ENV{HOME}; + my $is_bttv_loaded = cat_("/proc/modules"); + run_program::run('/sbin/modprobe', 'bttv') if $< == 0 && $is_bttv_loaded !~ /bttv/; my $i = system(($use_X ? "xvt -T '" . N("Scanning for TV channels") . " ...' -e " : "") . "scantv -n $norm -f $ftable_id -o $home/.xawtv" . ($use_X ? "" : " &>$home/tmp/scantv.log;")); -- cgit v1.2.1