diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-07-06 01:52:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-07-06 01:52:18 +0000 |
commit | 416c47c121ec13f207b4456316b356692387fef1 (patch) | |
tree | 6cf99c981d4823b9638973c7f0a6d81d92fdf4fe /etc | |
parent | 340c0677c3b841423eefd9e4385312f81e37da22 (diff) | |
download | pfsense-416c47c121ec13f207b4456316b356692387fef1.zip pfsense-416c47c121ec13f207b4456316b356692387fef1.tar.gz |
Only push 1 char version, such as 7 instead of 7.0
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index cffd42a..d62313a 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -111,7 +111,7 @@ function get_pkg_id($pkg_name) { ******/ function get_pkg_info($pkgs = 'all', $info = 'all') { global $g; - $freebsd_version = str_replace("\n", "", `uname -r | cut -d'-' -f1`); + $freebsd_version = str_replace("\n", "", `uname -r | cut -d'-' -f1 | cut -d'.' -f1`); $params = array( "pkg" => $pkgs, "info" => $info, |