diff options
author | Ermal <eri@pfsense.org> | 2014-03-28 22:33:27 +0100 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-03-28 22:34:01 +0100 |
commit | a02fa5ec3c19393acfb4b33680b0c7e56829432f (patch) | |
tree | f9ec8ad74550202a5c8c99ca5c951c5505035489 /etc/inc/pfsense-utils.inc | |
parent | 255596d901df0f79b04b5785666e2b9511615ffb (diff) | |
download | pfsense-a02fa5ec3c19393acfb4b33680b0c7e56829432f.zip pfsense-a02fa5ec3c19393acfb4b33680b0c7e56829432f.tar.gz |
Do not use the version_kernel ad version_base files since they are not relevant anyway
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 8ba3fd2..61d6428 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -723,13 +723,16 @@ function check_firmware_version($tocheck = "all", $return_php = true) { $ip = gethostbyname($xmlrpcfqdn); if($ip == $xmlrpcfqdn) return false; - + $version = php_uname('r'); + $version = explode('-', $version); $rawparams = array("firmware" => array("version" => trim(file_get_contents('/etc/version'))), - "kernel" => array("version" => trim(file_get_contents('/etc/version_kernel'))), - "base" => array("version" => trim(file_get_contents('/etc/version_base'))), + "kernel" => array("version" => $version[0]), + "base" => array("version" => $version[0]), "platform" => trim(file_get_contents('/etc/platform')), "config_version" => $config['version'] ); + unset($version); + if($tocheck == "all") { $params = $rawparams; } else { |