variousscripts/controlserverwebpage/status.php

13 lines
241 B
PHP
Raw Permalink Normal View History

2019-08-05 13:07:57 +00:00
<?php
$mountCheck = "ls /media/veracrypt/check/";
// if file 'accept' exists, then disk is mounted
if (exec($mountCheck) == 'accept') $mountStatus = "mounted";
else $mountStatus = "dismounted";
$result = $mountStatus;
echo $result;
?>