diff --git a/emhttp/plugins/dynamix/SysDrivers.page b/emhttp/plugins/dynamix/SysDrivers.page index 283cc40db..8d0f17d97 100644 --- a/emhttp/plugins/dynamix/SysDrivers.page +++ b/emhttp/plugins/dynamix/SysDrivers.page @@ -27,7 +27,7 @@ table.t1{margin-top:0;background:transparent; border-collapse: collapse; border- //table.t1 td:first-child{width:144px} table tr td{padding:0 0 3px 0;margin:0} table tr td.thin{line-height:8px;height:8px} -table.t1 tr>td{width: 1%; white-space: nowrap;} +table.t1 tr>td{width: 1%; ; text-align:centre ;white-space: nowrap;} table.t1 tr>td+td{width: 1%; white-space: nowrap; } table.t1 tr>td+td+td{width:auto ; text-align:left;} table.t1 tr>td+td+td+td{text-align:left;} @@ -84,11 +84,13 @@ function textsave(module) { $('#text'+module).val(data.modprobe) ; $('#status'+module).html(data.state) ; if (data.modprobe == "") $('#text'+module).attr('hidden', true); else $('#text'+module).attr('rows', 3) - if (data.support == true) { - document.getElementById("link" + module).innerHTML = "" ; - } else { - document.getElementById("link" + module).innerHTML = "" ; - } + if (data.supportpage == true) { + if (data.support == true) { + document.getElementById("link" + module).innerHTML = "" ; + } else { + document.getElementById("link" + module).innerHTML = "" ; + } + } } var message = "_(System Drivers)_: _(A reboot is required to apply changes)_"; addRebootNotice(message); diff --git a/emhttp/plugins/dynamix/include/SysDrivers.php b/emhttp/plugins/dynamix/include/SysDrivers.php index 462a82384..d165843a0 100644 --- a/emhttp/plugins/dynamix/include/SysDrivers.php +++ b/emhttp/plugins/dynamix/include/SysDrivers.php @@ -21,6 +21,7 @@ require_once "$docroot/plugins/dynamix.plugin.manager/include/PluginHelpers.php" $kernel = shell_exec("uname -r") ; $kernel = trim($kernel,"\n") ; $lsmod = shell_exec("lsmod") ; +$supportpage = true; function getplugin($in) { @@ -226,7 +227,6 @@ case 't1pre': } echo "" ; - $supportpage = true ; if ($supportpage) { if ($module['support'] == false) { $supporthtml = "" ; @@ -255,6 +255,7 @@ case "update": else $error = file_put_contents("/boot/config/modprobe.d/$module.conf",$conf) ; getmodules($module) ; $return = $arrModules[$module] ; + $return['supportpage'] = $supportpage ; if (is_array($return["modprobe"]))$return["modprobe"] = implode("\n",$return["modprobe"]) ; if ($error !== false) $return["error"] = false ; else $return["error"] = true ; echo json_encode($return) ;