.probes --> .Probes

darcs-hash:20090612203201-af139-2291782618af2dd1811f3525d72b25db1afd90fd.gz
This commit is contained in:
Jeremie Dimino 2009-06-12 22:32:01 +02:00
parent ed43dbd39b
commit 87b284571f
4 changed files with 7 additions and 7 deletions

View file

@ -23,9 +23,9 @@ header('Fichier de configuration de mumudvb')
@#Change this line to reflect your configuration @#Change this line to reflect your configuration
@#Ex : ADAPTERS="0 1 2 4" @#Ex : ADAPTERS="0 1 2 4"
dernierecarte=int(metadata.probes["cartesdvb"]) dernierecarte=int(metadata.Probes["cartesdvb"])
try: try:
cartesdesactivees=map(lambda x : int(x),metadata.probes["cartesdvbdesactivees_local"].split(' ')) cartesdesactivees=map(lambda x : int(x),metadata.Probes["cartesdvbdesactivees_local"].split(' '))
except: except:
cartesdesactivees=[] cartesdesactivees=[]

View file

@ -13,7 +13,7 @@ mnt("proc", "/proc", "proc")
mnt("shm", "/dev/shm", "tmpfs") mnt("shm", "/dev/shm", "tmpfs")
@# Les définitions locales @# Les définitions locales
print metadata.probes["fstab_local"] print metadata.Probes["fstab_local"]
if has("nfs"): if has("nfs"):
@# Le nfs @# Le nfs

View file

@ -168,9 +168,9 @@ service("vsftpd",
service("vsftpd-federez", service("vsftpd-federez",
extra=["if failed host 138.231.136.129 port 21 protocol ftp timeout 30 seconds then restart"]) extra=["if failed host 138.231.136.129 port 21 protocol ftp timeout 30 seconds then restart"])
dernierecarte=int(metadata.probes["cartesdvb"]) dernierecarte=int(metadata.Probes["cartesdvb"])
try: try:
cartesdesactivees=map(lambda x : int(x),metadata.probes["cartesdvbdesactivees_local"].split(' ')) cartesdesactivees=map(lambda x : int(x),metadata.Probes["cartesdvbdesactivees_local"].split(' '))
except: except:
cartesdesactivees=[] cartesdesactivees=[]
@ -191,7 +191,7 @@ for i in range(0,dernierecarte):
if hostname in ['canard'] : if hostname in ['canard'] :
done() done()
for line in metadata.probes["fstab_local"].splitlines(): for line in metadata.Probes["fstab_local"].splitlines():
# on supprime les espaces # on supprime les espaces
line = line.strip() line = line.strip()

View file

@ -92,4 +92,4 @@ iface lo inet loopback
""" """
exec metadata.probes["interfaces_local"] exec metadata.Probes["interfaces_local"]