From: Stefan Schantl Date: Fri, 16 Jun 2023 22:22:22 +0000 (+0200) Subject: extrahd.cgi: Display mount status next to the corresponding drive X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36c00384fd0bea99939915d6cb4eb695d8aea5f1;p=people%2Fstevee%2Fipfire-2.x.git extrahd.cgi: Display mount status next to the corresponding drive Signed-off-by: Stefan Schantl --- 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 <