From: Stefan Schantl Date: Tue, 1 Aug 2023 15:48:33 +0000 (+0200) Subject: extrahd.cgi: Display mount status next to the corresponding drive X-Git-Tag: v2.27-core179~9^2~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd815c36ea085dd40e4fd8b91dec1a81401369df;p=ipfire-2.x.git extrahd.cgi: Display mount status next to the corresponding drive Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/extrahd.cgi b/html/cgi-bin/extrahd.cgi index 4db540aae4..bb84ef77c5 100644 --- a/html/cgi-bin/extrahd.cgi +++ b/html/cgi-bin/extrahd.cgi @@ -302,14 +302,31 @@ END 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 "MOUNTED \n"; + } else { + print "NOT MOUNTED \n"; + } + + print "\n"; + } else { + unless($disabled) { + print "\n"; + print "UNCONFIGURED \n"; + print "\n"; + } } print <