projects
/
vsorcdistro
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start web server from beginnig
[vsorcdistro/.git]
/
scripts
/
conectionmonitor.py
diff --git
a/scripts/conectionmonitor.py
b/scripts/conectionmonitor.py
index 28332bde441d3b0d58934a67ff4e08d3808dc966..2bfbb71ee85c686441e6c57df2690ab785b35325 100755
(executable)
--- a/
scripts/conectionmonitor.py
+++ b/
scripts/conectionmonitor.py
@@
-1,11
+1,10
@@
#!/usr/bin/python
import os
#!/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")
response = os.system("ping -c 1 " + hostname +" > /dev/null")
-
-#and then check the response...
+#Check the response...
if response == 0:
print hostname
if response == 0:
print hostname
-# else:
-# print hostname, 'is down!'
+