diff --git a/wifi/status.py b/wifi/status.py index 290008ef..808e0ac6 100755 --- a/wifi/status.py +++ b/wifi/status.py @@ -34,7 +34,7 @@ for b in bornes: # Est-ce un hotspot ? hotspot = "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