start web server from beginnig
[vsorcdistro/.git] / scripts / conectionmonitor.py
index 28332bde441d3b0d58934a67ff4e08d3808dc966..2bfbb71ee85c686441e6c57df2690ab785b35325 100755 (executable)
@@ -1,11 +1,10 @@
 #!/usr/bin/python
 import os
-for i in range(3,17):
-    hostname = "192.168.25."+str(i) #example
+print "Raspberry Pi UP!"
+for i in range(2,16):
+    hostname = "rpi"+str(i)
     response = os.system("ping -c 1 " + hostname +" > /dev/null")
-
-#and then check the response...
+#Check the response...
     if response == 0:
         print hostname
-#    else:
-#        print hostname, 'is down!'
+