From ad67ce370d55e5f220ee647ae3929a90175fb9e7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 20 Aug 2005 01:24:38 +0000 Subject: Make sure we deactivate when deleting package. --- packages/per-user-bandwidth-distribution.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/per-user-bandwidth-distribution.xml b/packages/per-user-bandwidth-distribution.xml index 51577a7c..76139c7a 100644 --- a/packages/per-user-bandwidth-distribution.xml +++ b/packages/per-user-bandwidth-distribution.xml @@ -45,6 +45,7 @@ $fd = fopen("/usr/local/etc/rc.d/per_user_bandwidth_distribution.sh","w"); fwrite($fd, "# This file was automatically generated by the pfSense\n"); fwrite($fd, "# package manager system\n\n"); + fwrite($fd, "/sbin/kldload ipfw\n"); fwrite($fd, "/sbin/kldload dummynet\n"); fwrite($fd, "/sbin/ipfw delete 10\n"); fwrite($fd, "/sbin/ipfw pipe 1 config mask src-ip 0x000000ff bw {$_POST['bandwidth']}{$_POST['bandwidthtype']}\n"); @@ -56,4 +57,9 @@ 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"); - + + mwexec("/sbin/ipfw delete 10"); + mwexec("/sbin/kldunload dummynet"); + mwexec("/sbin/kldunload ipfw"); + + \ No newline at end of file -- cgit v1.2.3