From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard Bitsch To: development@lists.ipfire.org Subject: Re: [PATCHv2 06/12] extrahd.cgi: Display mount status next to the corresponding drive Date: Wed, 02 Aug 2023 13:55:58 +0200 Message-ID: <5e81c5cb-b2ee-c3f3-7197-7662465516f9@ipfire.org> In-Reply-To: <20230801154839.2373-6-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8964882733651201582==" List-Id: --===============8964882733651201582== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reviewed-by: Bernhard Bitsch Am 01.08.2023 um 17:48 schrieb Stefan Schantl: > Signed-off-by: Stefan Schantl > --- > html/cgi-bin/extrahd.cgi | 25 +++++++++++++++++++++---- > 1 file changed, 21 insertions(+), 4 deletions(-) >=20 > diff --git a/html/cgi-bin/extrahd.cgi b/html/cgi-bin/extrahd.cgi > index 4db540aae..bb84ef77c 100644 > --- a/html/cgi-bin/extrahd.cgi > +++ b/html/cgi-bin/extrahd.cgi > @@ -302,14 +302,31 @@ END > =20 > print < > - > + > > > > - > END > -; unless($disabled) { > - print"\n"; > +; > + # Check if the mountpoint refers to a known configured drive. > + if(&is_configured($mountpoint)) { > + print "\n"; > + print "\n= "; > + > + # Check if the device is mounted properly. > + if(&is_mounted($mountpoint)) { > + print "3D'M= \n"; > + } else { > + print "3D'NOT= \n"; > + } > + > + print "\n"; > + } else { > + unless($disabled) { > + print "\n"; > + print "3D'UN= \n"; > + print "\n"; > + } > } > =20 > print <