crans_bcfg2/Python/etc/default/mumudvb
Nicolas Dandrimont 528a316969 [groups.xml,mumudvb,monit] les entrees owner, group et perms n'ont pas leur place dans groups.xml
darcs-hash:20090414013209-ffbb2-7f5d435f9e48a91cdeb5359f4bd87b7f8c817076.gz
2009-04-14 03:32:09 +02:00

45 lines
1.1 KiB
Python

# -*- mode: python -*-
info["owner"] = "root"
info["group"] = "adm"
info["perms"] = 0644
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)