From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robin Roevens To: development@lists.ipfire.org Subject: [PATCH 3/3] services.cgi: add link to addon config if ui exists for it Date: Mon, 03 Oct 2022 17:39:05 +0200 Message-ID: <20221003153905.14824-4-robin.roevens@disroot.org> In-Reply-To: <20221003153905.14824-1-robin.roevens@disroot.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8275296764528611964==" List-Id: --===============8275296764528611964== 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 498d7fd8e..d988b29a5 100644 --- a/html/cgi-bin/services.cgi +++ b/html/cgi-bin/services.cgi @@ -185,6 +185,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. --===============8275296764528611964==--