summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-06 01:29:28 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-06 01:29:28 +0000
commit340c0677c3b841423eefd9e4385312f81e37da22 (patch)
treeb0e3b83cb25a23e3c392ee12f503b6e9eaef941e /etc/inc/pkg-utils.inc
parentd09682e9cca2b869dd7f1a57c099c5b175a00cd8 (diff)
downloadpfsense-340c0677c3b841423eefd9e4385312f81e37da22.zip
pfsense-340c0677c3b841423eefd9e4385312f81e37da22.tar.gz
Add freebsd version as parm.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index a3b201b..cffd42a 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -111,7 +111,12 @@ function get_pkg_id($pkg_name) {
******/
function get_pkg_info($pkgs = 'all', $info = 'all') {
global $g;
- $params = array("pkg" => $pkgs, "info" => $info);
+ $freebsd_version = str_replace("\n", "", `uname -r | cut -d'-' -f1`);
+ $params = array(
+ "pkg" => $pkgs,
+ "info" => $info,
+ "freebsd_version" => $freebsd_version
+ );
$resp = call_pfsense_method('pfsense.get_pkgs', $params, 10);
return $resp ? $resp : array();
}
OpenPOWER on IntegriCloud