From 4d96257e7859e027ce53f497847eb3c481c77f2b Mon Sep 17 00:00:00 2001 From: bernat Date: Tue, 6 Sep 2005 18:33:00 +0200 Subject: [PATCH] Pour les nouvelles bornes... darcs-hash:20050906163300-d1718-fa5491490705e1164054c4c86534b4a733bb3cbc.gz --- gestion/whos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/whos.py b/gestion/whos.py index 0df2c44b..4393d4e4 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -667,7 +667,7 @@ def borne_clients_canal(borne) : for clef in ["/etc/wifi/ssh/wifi","/usr/scripts/gestion/clef-wifi"]: if os.path.isfile(clef) and user_tests.isadm(): try: - wl = popen2.Popen3("ssh -o StrictHostKeyChecking=no -i %s root@%s 'for mac in $(/usr/sbin/wl assoclist | cut -f 2 -d \" \"); do rssi=$(/usr/sbin/wl rssi $mac 2> /dev/null | cut -f 3 -d \" \") ; echo $mac $rssi ; done ; echo -n \"CANAL \" ; /usr/sbin/wl channel | grep current' 2> /dev/null" % (clef, borne)) + wl = popen2.Popen3("ssh -o StrictHostKeyChecking=no -i %s root@%s 'cat /tmp/auth-mac.dump ; echo -n \"CANAL \" ; /usr/sbin/nvram get wl0_channel' 2> /dev/null" % (clef, borne)) wl.tochild.close() for line in wl.fromchild.readlines(): # Chaque ligne est de la forme