diff options
author | Ermal <eri@pfsense.org> | 2010-11-26 20:54:17 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-11-26 20:54:17 +0000 |
commit | 9a7f6731882c850a142bc082ebdfa3a7c321a3de (patch) | |
tree | c75df8d282d373085d8bc8b0314174ca3560d09a /etc/inc/pfsense-utils.inc | |
parent | 7a7551569a67ee4150f086acf30c6c59ecda6dcb (diff) | |
download | pfsense-9a7f6731882c850a142bc082ebdfa3a7c321a3de.zip pfsense-9a7f6731882c850a142bc082ebdfa3a7c321a3de.tar.gz |
Use php_uname where possible.
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 1aa37b0..45cd2b9 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1418,8 +1418,8 @@ function isvm() { } function get_freebsd_version() { - $version = trim(`/usr/bin/uname -r | /usr/bin/cut -d'.' -f1`); - return $version; + $version = php_uname("r"); + return $version[0]; } function download_file_with_progress_bar($url_file, $destination_file, $readbody = 'read_body') { @@ -2121,4 +2121,4 @@ function filter_rules_compare($a, $b) { return compare_interface_friendly_names($a['interface'], $b['interface']); } -?>
\ No newline at end of file +?> |