From 93e350f5d3f68b873fb7a1c9e9ccf8744aa31f4a Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 3 Feb 2014 11:51:13 -0200 Subject: Add path for sysctl, also use -n param instead of awk --- etc/inc/pfsense-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') 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) { -- cgit v1.1