diff options
Diffstat (limited to 'plugins-scripts/check_ntp.pl')
| -rwxr-xr-x | plugins-scripts/check_ntp.pl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl index f3f6f78b..918ad504 100755 --- a/plugins-scripts/check_ntp.pl +++ b/plugins-scripts/check_ntp.pl | |||
| @@ -7,6 +7,8 @@ | |||
| 7 | # be installed on the system, however since it's part of the ntp suite, you | 7 | # be installed on the system, however since it's part of the ntp suite, you |
| 8 | # should already have it installed. | 8 | # should already have it installed. |
| 9 | # | 9 | # |
| 10 | # $Id$ | ||
| 11 | # | ||
| 10 | # Nothing clever done in this program - its a very simple bare basics hack to | 12 | # Nothing clever done in this program - its a very simple bare basics hack to |
| 11 | # get the job done. | 13 | # get the job done. |
| 12 | # | 14 | # |
| @@ -45,19 +47,17 @@ | |||
| 45 | # source. This happens while starting up and if contact | 47 | # source. This happens while starting up and if contact |
| 46 | # with master has been lost. | 48 | # with master has been lost. |
| 47 | # | 49 | # |
| 48 | BEGIN { | 50 | # Modifed to run under Embedded Perl - patch from Douglas Warner |
| 49 | if ($0 =~ m/^(.*?)[\/\\]([^\/\\]+)$/) { | 51 | # |
| 50 | $runtimedir = $1; | 52 | |
| 51 | $PROGNAME = $2; | ||
| 52 | } | ||
| 53 | } | ||
| 54 | 53 | ||
| 55 | require 5.004; | 54 | require 5.004; |
| 56 | use POSIX; | 55 | use POSIX; |
| 57 | use strict; | 56 | use strict; |
| 58 | use Getopt::Long; | 57 | use Getopt::Long; |
| 59 | use vars qw($opt_V $opt_h $opt_H $opt_w $opt_c $verbose $PROGNAME); | 58 | use vars qw($opt_V $opt_h $opt_H $opt_w $opt_c $verbose $PROGNAME); |
| 60 | use lib $main::runtimedir; | 59 | use FindBin; |
| 60 | use lib "$FindBin::Bin"; | ||
| 61 | use utils qw($TIMEOUT %ERRORS &print_revision &support); | 61 | use utils qw($TIMEOUT %ERRORS &print_revision &support); |
| 62 | 62 | ||
| 63 | sub print_help (); | 63 | sub print_help (); |
