From: Robin Roevens Date: Tue, 11 Oct 2022 22:01:57 +0000 (+0200) Subject: services.cgi: add link to addon config if ui exists for it X-Git-Tag: v2.27-core172~210 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ed997102eeaee19e06e13aea4dfe08f83338489;p=ipfire-2.x.git services.cgi: add link to addon config if ui exists for it * If a cgi file exists with the same name as an addon, the displayed service will be a link to that cgi file. Signed-off-by: Robin Roevens Reviewed-by: Michael Tremer --- diff --git a/html/cgi-bin/services.cgi b/html/cgi-bin/services.cgi index 4b379251ef..14ed01c50a 100644 --- a/html/cgi-bin/services.cgi +++ b/html/cgi-bin/services.cgi @@ -192,6 +192,10 @@ END # Add addon name to displayname of service if servicename differs from addon my $displayname = ($pak ne $service) ? "$service ($pak)" : $service; + if ( -e "/srv/web/ipfire/cgi-bin/$pak.cgi" ) { + $displayname = ($pak ne $service) ? "$service ($pak)" : "$service"; + } + print "$displayname "; my $status = isautorun($pak,$service,$col);