Projet

Général

Profil

Révision 46e2de55

ID46e2de55def5c1a660f7ebbec9f22bbb5a8f8cf2
Parent 2ec4e4c1
Enfant 9cef55a3

Ajouté par Lars Kruse il y a environ 7 ans

Remove unused "autoconf" handling from plugins without this capability

Some plugins contained code for handling "autoconf" (always returning
"no") but did not announce the respective capability via the magic
marker.

Voir les différences:

plugins/router/snmp__linksys_poe
73 73
version = ENV['version'] == '1' ? :SNMPv1 : :SNMPv2c
74 74

  
75 75
case ARGV[0]
76
when "autoconf"
77
  puts "no"
78
  exit 1
79 76
when "snmpconf"
80 77
  puts "require 1.3.6.1.4.1.3955.89.108.1.1.2.1. [0-9]"
81 78
  puts "require 1.3.6.1.4.1.3955.89.108.1.1.5.1. [0-9]"
plugins/rtorrent/rtom_allsessions_mem
46 46
#%# family=auto
47 47

  
48 48

  
49
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
50
  exit 1;
51
}
52

  
53 49
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
54 50
  my $category = $ENV{"category"} || "";
55 51
  print "graph_title rTorrent memory usage\n";
plugins/rtorrent/rtom_allsessions_peers
44 44
#%# family=auto
45 45

  
46 46

  
47
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
48
  exit 1;
49
}
50

  
51 47
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
52 48
  my $category = $ENV{"category"} || "";
53 49
  print "graph_title rTorrent peer statistics\n";
plugins/rtorrent/rtom_allsessions_spdd
56 56
#%# family=auto
57 57

  
58 58

  
59
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
60
  exit 1;
61
}
62

  
63 59
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
64 60
  my $diff = $ENV{"diff"} || "";
65 61
  my $category = $ENV{"category"} || "";
plugins/rtorrent/rtom_allsessions_vol
46 46

  
47 47
my @views = ( "default", "started", "stopped", "complete", "incomplete" );
48 48

  
49
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
50
  exit 1;
51
}
52

  
53 49
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
54 50
  my $category = $ENV{"category"} || "";
55 51
  print "graph_args --base 1000 -r --lower-limit 0\n";
plugins/rtorrent/rtom_mem
44 44
#%# family=auto
45 45

  
46 46

  
47
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
48
	exit 1;
49
}
50

  
51 47
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
52 48
	my $category = $ENV{"category"} || "";
53 49
	print "graph_title rTorrent memory usage\n";
plugins/rtorrent/rtom_peers
44 44
#%# family=auto
45 45

  
46 46

  
47
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
48
	exit 1;
49
}
50

  
51 47
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
52 48
	my $category = $ENV{"category"} || "";
53 49
	print "graph_title rTorrent peer statistics\n";
plugins/rtorrent/rtom_spdd
57 57
#%# family=auto
58 58

  
59 59

  
60
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
61
	exit 1;
62
}
63

  
64 60
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
65 61
	my $diff = $ENV{"diff"} || "";
66 62
	my $category = $ENV{"category"} || "";
plugins/rtorrent/rtom_vol
45 45

  
46 46
my @views = ( "default", "started", "stopped", "complete", "incomplete" );
47 47

  
48
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
49
	exit 1;
50
}
51

  
52 48
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
53 49
	my $category = $ENV{"category"} || "";
54 50
	print "graph_args --base 1000 -r --lower-limit 0\n";
plugins/wuala/wuala_stats
33 33
#
34 34
my $wualadir = $ENV{wualadir};
35 35

  
36
if ($ARGV[0] and $ARGV[0] eq "autoconf")
37
{
38
	print "no\n";
39
	exit 1;
40
} elsif ($ARGV[0] and $ARGV[0] eq "config")
36

  
37
if ($ARGV[0] and $ARGV[0] eq "config")
41 38
{
42 39
	if($0 =~ /.*_uptime/) {
43 40
		print "graph_args -l0 --vertical-label %\n";

Formats disponibles : Unified diff