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:34:41 -0200 |
commit | 1d9b51c6b03452b45be981c0fcd0fa47d47e2395 (patch) | |
tree | f9d38fc41a926dde1e302269daa11735a7bc2436 | |
parent | 306f8556105ecf037e6d5ac46d346b47951d3321 (diff) | |
download | pfsense-1d9b51c6b03452b45be981c0fcd0fa47d47e2395.zip pfsense-1d9b51c6b03452b45be981c0fcd0fa47d47e2395.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 a1e8460..da904b5 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1446,7 +1446,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 get_uptime_sec() { |