From f917ffe38c78c224952b87aa833d059f7f030101 Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Wed, 25 Oct 2006 20:11:18 +0000 Subject: r378@rebekka: niko | 2006-10-25 23:13:14 +0300 don't complain about '-S' missing if it isn't. --- lib/Smokeping/probes/FPing.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Smokeping/probes/FPing.pm') diff --git a/lib/Smokeping/probes/FPing.pm b/lib/Smokeping/probes/FPing.pm index 5c6f612..3e44f7e 100644 --- a/lib/Smokeping/probes/FPing.pm +++ b/lib/Smokeping/probes/FPing.pm @@ -60,7 +60,7 @@ sub new($$$) my $testhost = $self->testhost; my $return = `$binary -C 1 $testhost 2>&1`; $self->{enable}{S} = (`$binary -h 2>&1` =~ /\s-S\s/); - carp "NOTE: your fping binary doesn't support source address setting (-S), disabling it - see http://bugs.debian.org/198486."; + carp "NOTE: your fping binary doesn't support source address setting (-S), disabling it - see http://bugs.debian.org/198486." if !$self->{enable}{S}; croak "ERROR: fping ('$binary -C 1 $testhost') could not be run: $return" if $return =~ m/not found/; croak "ERROR: FPing must be installed setuid root or it will not work\n" -- cgit v1.2.3-24-g4f1b