diff --git a/emhttp/plugins/dynamix/include/SysDriversHelpers.php b/emhttp/plugins/dynamix/include/SysDriversHelpers.php index 5af4783ac..5a0e241e8 100644 --- a/emhttp/plugins/dynamix/include/SysDriversHelpers.php +++ b/emhttp/plugins/dynamix/include/SysDriversHelpers.php @@ -81,9 +81,9 @@ function getmodules($name) { } elseif (is_file("/etc/modprobe.d/$modname.conf")) { $modprobe = file_get_contents("/etc/modprobe.d/$modname.conf"); $state = strpos($modprobe, "blacklist")!==false ? "Disabled" : "System"; + $modprobe = explode(PHP_EOL,$modprobe); $module['state'] = $state; $module['modprobe'] = $modprobe; - $modprobe = explode(PHP_EOL,$modprobe); } if ($filename != "(builtin)") { if ($filename) {