1 # EDIT THIS FILE WITH CAUTION (ntp-wait-opts)
3 # It has been AutoGen-ed February 27, 2018 at 10:49:48 AM by AutoGen 5.18.5
4 # From the definitions ntp-wait-opts.def
5 # and the template file perlopt
7 use Getopt::Long qw(GetOptionsFromArray);
8 Getopt::Long::Configure(qw(no_auto_abbrev no_ignore_case_always));
20 my $pager = $ENV{PAGER} || '(less || more)';
22 open STDOUT, "| $pager" or die "Can't fork a pager: $!";
35 'help' => '', 'more-help' => ''
38 my $ret = GetOptionsFromArray($args, $opts, (
39 'tries|n=i', 'sleep|s=i', 'verbose|v',
40 'help|?', 'more-help'));
43 ntp-wait - Wait for ntpd to stabilize the system clock - Ver. 4.2.8p11
44 USAGE: ntp-wait [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
46 -n, --tries=num Number of times to check ntpd
47 -s, --sleep=num How long to sleep between tries
48 -v, --verbose Be verbose
49 -?, --help Display usage information and exit
50 --more-help Pass the extended usage text through a pager
52 Options are specified by doubled hyphens and their name or by a single
53 hyphen and the flag character.
56 usage(0) if $opts->{'help'};
57 paged_usage(0) if $opts->{'more-help'};