summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-07-13 21:13:39 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-07-13 21:13:54 -0400
commitffaa337197c284971eb950fb171e2419486516b3 (patch)
tree83f2df41dcbee033fa1cde6499161b3f834b4946 /etc
parent1c9512f2332dd086bd17c553e85e1c9557c8ab7b (diff)
downloadpfsense-ffaa337197c284971eb950fb171e2419486516b3.zip
pfsense-ffaa337197c284971eb950fb171e2419486516b3.tar.gz
Correct sysctl location
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index eaaa851..02e65dc 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -58,7 +58,7 @@ function flowtable_configure() {
else
$maxstates = "150000";
// nmbflows cpu count * ($maxstates * 2)
- $cpus = trim(`/usr/sbin/sysctl kern.smp.cpus | /usr/bin/cut -d' ' -f2`);
+ $cpus = trim(`/sbin/sysctl kern.smp.cpus | /usr/bin/cut -d' ' -f2`);
$nmbflows = ($cpus*($maxstates*2));
// Is flowtable enabled?
if($config['system']['flowtable'])
@@ -68,10 +68,10 @@ function flowtable_configure() {
// Flowtable currently only works on 8.0
if(get_freebsd_version() == "8") {
if($flowtable_enable == 1) {
- mwexec("/usr/sbin/sysctl net.inet.flowtable.nmbflows={$config['system']['maximumstates']}");
- mwexec("/usr/sbin/sysctl net.inet.ip.output_flowtable_size={$nmbflows}");
+ mwexec("/sbin/sysctl net.inet.flowtable.nmbflows={$config['system']['maximumstates']}");
+ mwexec("/sbin/sysctl net.inet.ip.output_flowtable_size={$nmbflows}");
}
- mwexec("/usr/sbin/sysctl net.inet.flowtable.emable={$flowtable_enable}");
+ mwexec("/sbin/sysctl net.inet.flowtable.emable={$flowtable_enable}");
}
}
OpenPOWER on IntegriCloud