Double fping (combo)

darcs-hash:20060210212346-d1718-ec49cc0ddf9300eda6a1f62308c26734fcb64aba.gz
This commit is contained in:
bernat 2006-02-10 22:23:46 +01:00
parent 0e8054b24f
commit 72d0d32fac

View file

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