diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-02-03 11:51:13 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-02-04 12:36:32 -0200 |
commit | 93e350f5d3f68b873fb7a1c9e9ccf8744aa31f4a (patch) | |
tree | 9af14e20b231805c29e9732dede89e19b2d17067 | |
parent | 4dc8980318d8c7f476dc03ae4532f084735e68d6 (diff) | |
download | pfsense-93e350f5d3f68b873fb7a1c9e9ccf8744aa31f4a.zip pfsense-93e350f5d3f68b873fb7a1c9e9ccf8744aa31f4a.tar.gz |
Add path for sysctl, also use -n param instead of awk
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
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) { |