Permalink
Browse files

be more enterprising in finding the tracroute binary

  • Loading branch information...
1 parent 1f295f7 commit a48b95773687243f37764ba535594b0d51587007 @oetiker committed Feb 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 backend/lib/remOcular/Plugin/TraceRoute.pm
View
2 backend/lib/remOcular/Plugin/TraceRoute.pm
@@ -221,7 +221,7 @@ sub start_instance {
my $self = shift;
my $outfile = shift;
my $params = shift;
- my $bin = '/usr/sbin/traceroute';
+ my $bin = ''.(grep { -x $_.'/traceroute' } qw(/usr/bin /bin /usr/sbin /sbin))[0].'/traceroute';
if (not -x $bin){
$self->save($outfile,"#ERROR\t$bin not found\n");
return;

0 comments on commit a48b957

Please sign in to comment.