Änderungen

Zur Navigation springen Zur Suche springen
36 Bytes hinzugefügt ,  10:57, 14. Aug. 2007
K
→‎Technische Details: noch haesslicher
Zeile 24: Zeile 24:  
Test auf neue Firmware:
 
Test auf neue Firmware:
 
LIST=$(wget -O - http://127.0.0.1:2006 | sed -e '/./{H;$!d;}' -e 'x;/Table: HNA/!d;' | sed -e '/255.255.255.192/!d' -e 's/[^0-9.]/ /g' $FILE | cut -d" " -f3)
 
LIST=$(wget -O - http://127.0.0.1:2006 | sed -e '/./{H;$!d;}' -e 'x;/Table: HNA/!d;' | sed -e '/255.255.255.192/!d' -e 's/[^0-9.]/ /g' $FILE | cut -d" " -f3)
for IP in $LIST; do echo $IP; ping -q -c 4 $IP >/dev/null; wget -O - http://$IP/cgi-bin-contact.html | awk -F'TD>' '/E-Mail:/ {print $4}'; wget -O - http://$IP/cgi-bin-index.html | awk -v IP=$IP '/Freifunk-Firmware/ {print IP": "$4;exit}'; done
+
for IP in $LIST; do echo "----$IP"; PING="$(ping -c 4 10.63.21.129 | wc -l)" ; if [ "$PING" -gt 7 ]; then wget -O - http://$IP/cgi-bin-contact.html | awk -F'TD>' '/E-Mail:/ {print $4}'; wget -O - http://$IP/cgi-bin-index.html | awk '/Freifunk-Firmware/ {print $4; exit}'; fi; done
 
</pre>
 
</pre>

Navigationsmenü