"._("Driver").""._("Description").""._("State").""._("Type").""._("Modprobe.d config file").""; $html .= ""; ksort($arrModules); foreach($arrModules as $modname => $module) { if ($modname == "") continue; if (is_file("/boot/config/modprobe.d/$modname.conf")) { $modprobe = file_get_contents("/boot/config/modprobe.d/$modname.conf"); $state = strpos($modprobe, "blacklist"); $modprobe = explode(PHP_EOL,$modprobe); if($state !== false) {$state = "Disabled";} else $state="Custom"; $module['state'] = $state; $module['modprobe'] = $modprobe; } else { if (is_file("/etc/modprobe.d/$modname.conf")) { $modprobe = file_get_contents("/etc/modprobe.d/$modname.conf"); $state = strpos($modprobe, "blacklist"); $modprobe = explode(PHP_EOL,$modprobe); if($state !== false) {$state = "Disabled";} else $state="System"; $module['state'] = $state; $module['modprobe'] = $modprobe; } } $html .= ""; if ($supportpage) { if ($module['support'] == false) { $supporthtml = ""; } else { $supporturl = $module['supporturl']; $pluginname = $module['plugin']; $supporthtml = ""; } } if (!empty($module["version"])) $version = " (".$module["version"].")"; else $version = ""; $html .= "$modname$version$supporthtml"; $html .= "{$module['description']}{$module['state']}{$module['type']}"; $text = ""; if (is_array($module["modprobe"]) && count($module["modprobe"])) { $text = implode("\n",$module["modprobe"]); $html .= ""; $hidden = ""; if ($module['state'] == "System") $hidden = "hidden"; $html .= " "; $html .= "