Commit c75f1f9a authored by José Luis  Gutiérrez's avatar José Luis Gutiérrez Committed by Alessandro Rubini

/var/www/functions.php: check if filesystem is writable

Function wrs_check_writeable() added:
	It checks whether the switch filesystem is writable or not.
parent 0f265dfd
......@@ -19,5 +19,12 @@ function wrs_main_info(){
echo '</table>';
}
function wrs_check_writeable(){
$output = shell_exec('mount | grep "(ro,"');
echo (!isset($output) || trim($output) == "") ? "<br>WRS mounted as rw" : "<br><font color='red'>WARNING: WRS is mounted as ro, please contact the maintainer</font>";
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment