summaryrefslogtreecommitdiffstats
path: root/etc/inc/globals.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-11-26 20:54:17 +0000
committerErmal <eri@pfsense.org>2010-11-26 20:54:17 +0000
commit9a7f6731882c850a142bc082ebdfa3a7c321a3de (patch)
treec75df8d282d373085d8bc8b0314174ca3560d09a /etc/inc/globals.inc
parent7a7551569a67ee4150f086acf30c6c59ecda6dcb (diff)
downloadpfsense-9a7f6731882c850a142bc082ebdfa3a7c321a3de.zip
pfsense-9a7f6731882c850a142bc082ebdfa3a7c321a3de.tar.gz
Use php_uname where possible.
Diffstat (limited to 'etc/inc/globals.inc')
-rw-r--r--etc/inc/globals.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index 8059c3f..bc3eed7 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -122,7 +122,7 @@ $iptos = array("lowdelay", "throughput", "reliability");
$tcpflags = array("syn", "ack", "fin", "rst", "psh", "urg");
if(file_exists("/etc/platform")) {
- $arch = trim(`uname -m`);
+ $arch = php_uname("m");
$g['platform'] = trim(file_get_contents("/etc/platform"));
if($g['platform'] == "nanobsd") {
$g['update_url']="http://snapshots.pfsense.org/FreeBSD_RELENG_8_1/{$arch}/pfSense_HEAD/.updaters/";
@@ -167,4 +167,4 @@ $sysctls = array("net.inet.ip.portrange.first" => "1024",
$config_parsed = false;
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud