Commit 760b5be2 authored by Franco Fichtner's avatar Franco Fichtner

inc: fixup firmware version announce

parent e535d330
......@@ -536,17 +536,15 @@ function rmdir_recursive($path,$follow_links=false) {
/*
* host_firmware_version(): Return the versions used in this install
*/
function host_firmware_version($tocheck = "")
function host_firmware_version()
{
global $config;
$os_version = trim(substr(php_uname("r"), 0, strpos(php_uname("r"), '-')));
return array(
"firmware" => array("version" => trim(file_get_contents('/usr/local/opnsense/version/opnsense', " \n"))),
"kernel" => array("version" => $os_version),
"base" => array("version" => $os_version),
"config_version" => $config['version']
'firmware' => array('version' => file_get_contents('/usr/local/opnsense/version/opnsense')),
'kernel' => array('version' => file_get_contents('/usr/local/opnsense/version/os-update.kernel')),
'base' => array('version' => file_get_contents('/usr/local/opnsense/version/os-update.base')),
'config_version' => $config['version']
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment