
On ajoute le bundler pour le paquet mumudvb On met une exception si le probe chie (peut etre qu'on peut faire ca plus clean) On appelle les nouveaux scripts de generation de la conf darcs-hash:20090410124245-c9953-87ad38835be5ca992b0009e944083128e7fd0812.gz
42 lines
1 KiB
Python
42 lines
1 KiB
Python
# -*- mode: python -*-
|
|
|
|
|
|
header('Fichier de configuration de mumudvb')
|
|
|
|
@#Mumudvb init config file
|
|
@#
|
|
@# This file is used to specify the locations of mumudvb config files for each card
|
|
@#
|
|
@
|
|
@#If you want to launch a command before mumudvb (for example for automatic configuration generation)
|
|
@LAUNCH_BEFORE_MUMU="/usr/scripts/tv/genconf/gen_conf.py"
|
|
@
|
|
@#Options for mumudvb
|
|
@DAEMON_OPTS=""
|
|
@
|
|
@#The user to launch mumudvb
|
|
@DAEMONUSER=_mumudvb
|
|
@
|
|
@#Change this line to reflect your configuration
|
|
@#Ex : ADAPTERS="0 1 2 4"
|
|
|
|
dernierecarte=int(metadata.probes["cartesdvb"])
|
|
try:
|
|
cartesdesactivees=map(lambda x : int(x),metadata.probes["cartesdvbdesactivees_local"].split(' '))
|
|
except:
|
|
cartesdesactivees=[]
|
|
|
|
adapters=""
|
|
for i in range(0,dernierecarte):
|
|
if not i in cartesdesactivees:
|
|
adapters=adapters +str(i) +" "
|
|
|
|
adapters=adapters[:-1]
|
|
|
|
print 'ADAPTERS="%s"' % adapters
|
|
|
|
@
|
|
@#Location of the config files
|
|
@#Ex : MUMUDVB_CONF_1="/etc/mumudvb/card1.conf"
|
|
for i in range(0,dernierecarte):
|
|
print 'MUMUDVB_CONF_%d="/etc/sat/carte%d.conf"' % (i,i)
|