summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-10 00:19:22 +0000
committerErmal <eri@pfsense.org>2010-12-10 00:19:22 +0000
commite501de37f786b13d2bb6a1b6593dbafd3aa346e6 (patch)
tree238fdff3e1909ce7ba03e1c6096ce1527f1da75b /etc
parent68ef6e03bdc11b04ca01a78995f8ee79f9388219 (diff)
downloadpfsense-e501de37f786b13d2bb6a1b6593dbafd3aa346e6.zip
pfsense-e501de37f786b13d2bb6a1b6593dbafd3aa346e6.tar.gz
Hello xmlrpc to another function!
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc16
-rwxr-xr-xetc/rc.filter_synchronize2
2 files changed, 16 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 76d3510..92013e3 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -760,11 +760,25 @@ function check_firmware_version($tocheck = "all", $return_php = true) {
return $versions;
}
+/*
+ * host_firmware_version(): Return the versions used in this install
+ */
+function host_firmware_version() {
+ global $g, $config;
+
+ return array(
+ "firmware" => array("version" => trim(file_get_contents('/etc/version', " \n"))),
+ "kernel" => array("version" => trim(file_get_contents('/etc/version_kernel', " \n"))),
+ "base" => array("version" => trim(file_get_contents('/etc/version_base', " \n"))),
+ "platform" => trim(file_get_contents('/etc/platform', " \n")),
+ "config_version" => $config['version']
+ );
+}
+
function get_disk_info() {
$diskout = "";
exec("/bin/df -h | /usr/bin/grep -w '/' | /usr/bin/awk '{ print $2, $3, $4, $5 }'", $diskout);
return explode(' ', $diskout[0]);
- // $size, $used, $avail, $cap
}
/****f* pfsense-utils/strncpy
diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize
index 36567f7..a30825b 100755
--- a/etc/rc.filter_synchronize
+++ b/etc/rc.filter_synchronize
@@ -88,7 +88,7 @@ function remove_special_characters($string) {
return $string;
}
-function carp_check_version($url, $password, $port = 80, $method = 'pfsense.check_firmware_version') {
+function carp_check_version($url, $password, $port = 80, $method = 'pfsense.host_firmware_version') {
global $config, $g;
if(file_exists("{$g['varrun_path']}/booting") || $g['booting'])
OpenPOWER on IntegriCloud