pakfire: Change pingtest to use icmp again.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Mar 2010 09:45:47 +0000 (10:45 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Mar 2010 09:47:33 +0000 (10:47 +0100)
config/rootfiles/core/37/filelists/files
src/pakfire/lib/functions.pl

index 3b1e88b..c6ee131 100644 (file)
@@ -20,3 +20,4 @@ usr/local/bin/sshctrl
 var/ipfire/langs/de.pl
 var/ipfire/langs/en.pl
 var/ipfire/langs/fr.pl
+opt/pakfire/lib/pakfire.pl
index 8d4a7da..5aaa5f4 100644 (file)
@@ -116,7 +116,7 @@ sub usage {
 sub pinghost {
        my $host = shift;
        
-       $p = Net::Ping->new();
+       $p = Net::Ping->new("icmp");
   if ($p->ping($host)) {
         logger("PING INFO: $host is alive");
        return 1;