Commit 0c5140ab authored by Marius Burkard's avatar Marius Burkard
Browse files

- fixed syntax error from previous commits

parent 709638f1
...@@ -1832,7 +1832,7 @@ class system{ ...@@ -1832,7 +1832,7 @@ class system{
function is_mounted($mountpoint){ function is_mounted($mountpoint){
//$cmd = 'df 2>/dev/null | grep " '.$mountpoint.'$"'; //$cmd = 'df 2>/dev/null | grep " '.$mountpoint.'$"';
$cmd = 'mount 2>/dev/null | grep ?'; $cmd = 'mount 2>/dev/null | grep ?';
exec($cmd, ' on '. $mountpoint . ' type '); $this->exec_safe($cmd, ' on '. $mountpoint . ' type ');
$return_var = $this->last_exec_retcode(); $return_var = $this->last_exec_retcode();
return $return_var == 0 ? true : false; return $return_var == 0 ? true : false;
} }
......
Supports Markdown
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