Merge branch 'ent-11907-incluir-distro-y-version-en-about-y-diagnostic-info' into 'develop'
Ent 11907 incluir distro y version en about y diagnostic info See merge request artica/pandorafms!6420
This commit is contained in:
commit
eebab43e36
|
@ -737,7 +737,7 @@ class Diagnostics extends Wizard
|
||||||
$cpuModelName = 'cat /proc/cpuinfo | grep "model name" | tail -1 | cut -f 2 -d ":"';
|
$cpuModelName = 'cat /proc/cpuinfo | grep "model name" | tail -1 | cut -f 2 -d ":"';
|
||||||
$cpuProcessor = 'cat /proc/cpuinfo | grep "processor" | wc -l';
|
$cpuProcessor = 'cat /proc/cpuinfo | grep "processor" | wc -l';
|
||||||
$ramMemTotal = 'cat /proc/meminfo | grep "MemTotal"';
|
$ramMemTotal = 'cat /proc/meminfo | grep "MemTotal"';
|
||||||
|
$distroInfo = 'cat /etc/os-release | grep "PRETTY_NAME" | cut -f 2 -d "="';
|
||||||
exec(
|
exec(
|
||||||
"ifconfig | awk '{ print $2}' | grep -E -o '([0-9]{1,3}[\.]){3}[0-9]{1,3}'",
|
"ifconfig | awk '{ print $2}' | grep -E -o '([0-9]{1,3}[\.]){3}[0-9]{1,3}'",
|
||||||
$output
|
$output
|
||||||
|
@ -756,6 +756,10 @@ class Diagnostics extends Wizard
|
||||||
'name' => __('RAM'),
|
'name' => __('RAM'),
|
||||||
'value' => exec($ramMemTotal),
|
'value' => exec($ramMemTotal),
|
||||||
],
|
],
|
||||||
|
'distroInfo' => [
|
||||||
|
'name' => __('Distro'),
|
||||||
|
'value' => str_replace('"', '', exec($distroInfo)),
|
||||||
|
],
|
||||||
'osInfo' => [
|
'osInfo' => [
|
||||||
'name' => __('Os'),
|
'name' => __('Os'),
|
||||||
'value' => exec('uname -a'),
|
'value' => exec('uname -a'),
|
||||||
|
|
|
@ -1170,6 +1170,14 @@ if (is_ajax()) {
|
||||||
<p style="font-size: 10pt;">'.$sys_info->data->ramInfo->value.'</p>
|
<p style="font-size: 10pt;">'.$sys_info->data->ramInfo->value.'</p>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 15%;">
|
||||||
|
<p><span>'.$sys_info->data->distroInfo->name.'</span></p>
|
||||||
|
</th>
|
||||||
|
<th style="width: 85%;">
|
||||||
|
<p style="font-size: 10pt;">'.$sys_info->data->distroInfo->value.'</p>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 15%;">
|
<th style="width: 15%;">
|
||||||
<p><span>'.$sys_info->data->osInfo->name.'</span></p>
|
<p><span>'.$sys_info->data->osInfo->name.'</span></p>
|
||||||
|
|
Loading…
Reference in New Issue