Révision c42a35e5
Ajouté par jim-p il y a presque 10 ans
etc/inc/pfsense-utils.inc | ||
---|---|---|
753 | 753 |
function host_firmware_version($tocheck = "") { |
754 | 754 |
global $g, $config; |
755 | 755 |
|
756 |
$os_version = trim(substr(php_uname("r"), 0, strpos(php_uname("r"), '-'))); |
|
757 |
|
|
756 | 758 |
return array( |
757 | 759 |
"firmware" => array("version" => trim(file_get_contents('/etc/version', " \n"))), |
758 |
"kernel" => array("version" => trim(file_get_contents('/etc/version_kernel', " \n"))),
|
|
759 |
"base" => array("version" => trim(file_get_contents('/etc/version_base', " \n"))),
|
|
760 |
"kernel" => array("version" => $os_version),
|
|
761 |
"base" => array("version" => $os_version),
|
|
760 | 762 |
"platform" => trim(file_get_contents('/etc/platform', " \n")), |
761 | 763 |
"config_version" => $config['version'] |
762 | 764 |
); |
Formats disponibles : Unified diff
/etc/version_kernel and /etc/version_base no longer exist, use php_uname to get the info instead.