Commit 2db6516a authored by Franco Fichtner's avatar Franco Fichtner

inc: fixup firmware version announce

parent 9a71f6aa
......@@ -284,17 +284,15 @@ function merge_config_section($section_name, $new_contents)
/*
* 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