diff --git a/xinetd/cgi_args.pl b/xinetd/cgi_args.pl new file mode 100644 index 000000000..4dbc4f582 --- /dev/null +++ b/xinetd/cgi_args.pl @@ -0,0 +1,12 @@ + +do 'xinetd-lib.pl'; + +sub cgi_args +{ +my ($cgi) = @_; +if ($cgi eq 'edit_serv.cgi') { + my @conf = grep { $_->{'name'} eq 'service' } &get_xinetd_config(); + return @conf ? 'idx='.$conf[0]->{'index'} : 'new=1'; + } +return undef; +}