init from 4 old repositories
This commit is contained in:
12
controlserverwebpage/status.php
Normal file
12
controlserverwebpage/status.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?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;
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user