Utilisation de la methode hotspot()

darcs-hash:20060311155105-d1718-f1f950e034de3c6477f120c9c95addc572a0919f.gz
This commit is contained in:
bernat 2006-03-11 16:51:05 +01:00
parent 2c09eff1af
commit cf7c0b54bb

View file

@ -32,7 +32,7 @@ for b in bornes:
continue
# Est-ce un hotspot ?
hotspot = "<nvram>crans_hotspot=1" in b.info() and 1 or 0
hotspot = b.hotspot() and 1 or 0
# Est-ce que la borne est up ?
if os.system("/usr/local/sbin/fping -q %s || /usr/local/sbin/fping -q %s" % ((b.nom(),)*2)) == 0:
up = 1