summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-03-28 22:33:27 +0100
committerErmal <eri@pfsense.org>2014-03-28 22:34:01 +0100
commita02fa5ec3c19393acfb4b33680b0c7e56829432f (patch)
treef9ec8ad74550202a5c8c99ca5c951c5505035489 /etc
parent255596d901df0f79b04b5785666e2b9511615ffb (diff)
downloadpfsense-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')
-rw-r--r--etc/inc/pfsense-utils.inc9
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 {
OpenPOWER on IntegriCloud