mirror of
https://github.com/unraid/webgui.git
synced 2026-05-06 20:30:50 -05:00
SystemDrivers add version
Add version to module Module (Version)
This commit is contained in:
@@ -79,7 +79,9 @@ switch ($_POST['table']) {
|
||||
$supporthtml = "<span id='link$modname'><a href='$supporturl' target='_blank'><i title='"._("Support page $pluginname")."' class='fa fa-phone-square'></i></a></span>" ;
|
||||
}
|
||||
}
|
||||
$html .= "<td>$modname$supporthtml</td>" ;
|
||||
if (isset($module["version"])) $version = "(".$module["version"].")" ; else $version = "" ;
|
||||
|
||||
$html .= "<td>$modname $version$supporthtml</td>" ;
|
||||
$html .= "<td>{$module['description']}</td><td id=\"status$modname\">{$module['state']}</td><td>{$module['type']}</td>";
|
||||
|
||||
$text = "" ;
|
||||
|
||||
@@ -52,6 +52,9 @@ function getmodules($line) {
|
||||
case "file":
|
||||
$file = trim(str_replace("file:","",$outline)) ;
|
||||
break ;
|
||||
case "version":
|
||||
$version = trim(str_replace("version:","",$data[1])) ;
|
||||
break ;
|
||||
case "alias":
|
||||
case "author":
|
||||
case "firmware":
|
||||
@@ -103,7 +106,8 @@ $dir = str_replace("/lib/modules/$kernel/kernel/", "" ,$dir) ;
|
||||
if ($desc != null) $description = substr($desc , 0 ,60) ; else $description = null ;
|
||||
$arrModules[$modname] = [
|
||||
'modname' => $modname,
|
||||
'dependacy' => $depends,
|
||||
'dependacy' => $depends,
|
||||
'version' => $version,
|
||||
'parms' => $parms,
|
||||
'file' => $file,
|
||||
'modprobe' => $modprobe,
|
||||
|
||||
Reference in New Issue
Block a user