Révision ec25f18a
Ajouté par Renato Botelho il y a presque 10 ans
etc/inc/util.inc | ||
---|---|---|
299 | 299 |
function is_module_loaded($module_name) { |
300 | 300 |
$module_name = str_replace(".ko", "", $module_name); |
301 | 301 |
$running = 0; |
302 |
$_gb = exec("/sbin/kldstat -qn {$module_name}", $_gb, $running); |
|
302 |
$_gb = exec("/sbin/kldstat -qn {$module_name} 2>&1", $_gb, $running);
|
|
303 | 303 |
if (intval($running) == 0) |
304 | 304 |
return true; |
305 | 305 |
else |
Formats disponibles : Unified diff
Silent kldstat