From bc5ba395055536aa336d934ed896a3687c3780f6 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 22 Apr 2007 22:35:40 +0000 Subject: Use $config['system']['dummynetshaper'] option to load ipfw / dummynet both early on in the pfil process. --- packages/per-user-bandwidth-distribution.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/per-user-bandwidth-distribution.xml b/packages/per-user-bandwidth-distribution.xml index 1ff36e3a..bb04b287 100644 --- a/packages/per-user-bandwidth-distribution.xml +++ b/packages/per-user-bandwidth-distribution.xml @@ -82,6 +82,8 @@ fclose($fd); mwexec("chmod a+rx /usr/local/etc/rc.d/per_user_bandwidth_distribution.sh"); mwexec_bg("/usr/local/etc/rc.d/per_user_bandwidth_distribution.sh"); + $config['system']['dummynetshaper'] = true; + write_config(); conf_mount_ro(); @@ -90,6 +92,8 @@ mwexec("/sbin/kldunload ipfw"); conf_mount_rw(); unlink_if_exists("/usr/local/etc/rc.d/per_user_bandwidth_distribution.sh"); + unset($config['system']['dummynetshaper']); + write_config(); conf_mount_ro(); \ No newline at end of file -- cgit v1.2.3