Ce serait super mega cool de verifier que quand on cre une classe
BiduleWifi, le wifi fonctionne encore. darcs-hash:20060302215722-d1718-59f186144bb9bb518dc7b29f3d10a223ed6d88ad.gz
This commit is contained in:
parent
d3a4601c4c
commit
e4fbd08a88
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ from gen_confs import gen_config, ERREUR, OK, anim
|
|||
|
||||
import sys, os, shutil
|
||||
sys.path.append('/usr/scripts/gestion')
|
||||
from ldap_crans import crans_ldap, invite
|
||||
from ldap_crans import crans_ldap, invite, BorneWifi
|
||||
|
||||
class conf_wifi_ng(gen_config) :
|
||||
""" Génération de la configuration de isakmpd dans ISAKMPD_CONF
|
||||
|
@ -95,7 +95,7 @@ class conf_wifi_ng(gen_config) :
|
|||
os.path.join("%s%s" % (WORK, root[len(top):]),
|
||||
name))
|
||||
# On créé/complète le fichier /etc/nvram.updates
|
||||
if borne.nom() != "non-configure.wifi.crans.org":
|
||||
if isinstance(borne, BorneWifi) and borne.nom() != "non-configure.wifi.crans.org":
|
||||
fd = file(os.path.join(WORK, "etc", "nvram.updates"), "a")
|
||||
data = { 'HOST': borne.nom().split('.')[0],
|
||||
'IP': borne.ip(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue