summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-02-03 11:51:13 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-02-04 12:36:32 -0200
commit93e350f5d3f68b873fb7a1c9e9ccf8744aa31f4a (patch)
tree9af14e20b231805c29e9732dede89e19b2d17067 /etc
parent4dc8980318d8c7f476dc03ae4532f084735e68d6 (diff)
downloadpfsense-93e350f5d3f68b873fb7a1c9e9ccf8744aa31f4a.zip
pfsense-93e350f5d3f68b873fb7a1c9e9ccf8744aa31f4a.tar.gz
Add path for sysctl, also use -n param instead of awk
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 80ef96d..0b6507e 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1442,7 +1442,7 @@ function get_interface_info($ifdescr) {
//returns cpu speed of processor. Good for determining capabilities of machine
function get_cpu_speed() {
- return exec("sysctl hw.clockrate | awk '{ print $2 }'");
+ return exec("/sbin/sysctl -n hw.clockrate");
}
function add_hostname_to_watch($hostname) {
OpenPOWER on IntegriCloud