hellkat
2013-03-26 cc65688b3da3e16729a1f73dd50fd975bd1ff741
server/lib/classes/system.inc.php
@@ -1537,6 +1537,13 @@
            return intval($string);
        }
    }
   function is_mounted($mountpoint){
      //$cmd = 'df 2>/dev/null | grep " '.$mountpoint.'$"';
      $cmd = 'mount 2>/dev/null | grep " on '.$mountpoint.' type "';
      exec($cmd, $output, $return_var);
      return $return_var == 0 ? true : false;
   }
}
?>