]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Makgraphs pingt jetzt wieder den ersten Hop.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Thu, 4 Jan 2007 23:01:10 +0000 (23:01 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Thu, 4 Jan 2007 23:01:10 +0000 (23:01 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@379 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

src/scripts/makegraphs

index 89159fbb53ecce2ed01fae436fc82c93746b6b0c..7d4ee2479300805c8ddefcd1801ad1c80e7bd941 100644 (file)
@@ -702,7 +702,7 @@ sub updatelq {
        my $roundtrip=0;
        my $test=0;
 #      LQ_GATEWAY is the ip of your isp's public ip facing you
-       my $LQ_GATEWAY='www.heise.de';
+       my $LQ_GATEWAY=`netstat -rn | grep ^0.0.0.0 | awk '{print \$2}'`;
        my $NUMPINGS=10;
        my $pingoutput = `ping -c $NUMPINGS -q $LQ_GATEWAY`;
        chomp;