From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robin Roevens To: development@lists.ipfire.org Subject: [PATCH v3 5/5] services.cgi: add link to addon config if ui exists for it Date: Wed, 12 Oct 2022 00:01:57 +0200 Message-ID: <20221011220157.17385-6-robin.roevens@disroot.org> In-Reply-To: <20221011220157.17385-1-robin.roevens@disroot.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5580374704008127565==" List-Id: --===============5580374704008127565== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable * 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 --- html/cgi-bin/services.cgi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/cgi-bin/services.cgi b/html/cgi-bin/services.cgi index 4b379251e..14ed01c50 100644 --- a/html/cgi-bin/services.cgi +++ b/html/cgi-bin/services.cgi @@ -192,6 +192,10 @@ END =20 # Add addon name to displayname of service if servicename differs from a= ddon my $displayname =3D ($pak ne $service) ? "$service ($pak)" : $service; + if ( -e "/srv/web/ipfire/cgi-bin/$pak.cgi" ) { + $displayname =3D ($pak ne $service) ? "$service ($pak)" : "$service"; + }=20 + print "$displayname "; =20 my $status =3D isautorun($pak,$service,$col); --=20 2.37.3 --=20 Dit bericht is gescanned op virussen en andere gevaarlijke inhoud door MailScanner en lijkt schoon te zijn. --===============5580374704008127565==--