45 lines
1.1 KiB
Python
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)
|