diff --git a/gestion/gen_confs/wifi.py b/gestion/gen_confs/wifi.py index f1806dac..c72ce4c8 100755 --- a/gestion/gen_confs/wifi.py +++ b/gestion/gen_confs/wifi.py @@ -437,12 +437,14 @@ cat /tmp/autoexec.log | busybox logger -t "Statut" self.lock() for borne in self.bornes : anim('\treboot de %s' % borne) - status, output = commands.getstatusoutput('ssh -i %s -o StrictHostKeyChecking=no root@%s reboot || true' % ( self.clef, borne ) ) + status, output = commands.getstatusoutput('ssh -i %s -o StrictHostKeyChecking=no root@%s wget ftp://138.231.148.1/autoexec.sh' % ( self.clef, borne ) ) if status : print ERREUR if self.debug : print output + self.db.services_to_restart('bornes_wifi', borne) else : + status, output = commands.getstatusoutput('ssh -i %s -o StrictHostKeyChecking=no root@%s sh /tmp/autoexec.sh || true' % ( self.clef, borne ) ) print OK self.unlock()