aboutsummaryrefslogtreecommitdiffstats
path: root/packages/per-user-bandwidth-distribution.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-20 01:24:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-20 01:24:38 +0000
commitad67ce370d55e5f220ee647ae3929a90175fb9e7 (patch)
tree8d4ed21c017b52efe6b57202c9267c6b55543899 /packages/per-user-bandwidth-distribution.xml
parentacf0a3e5320cafe564908d0cb7dd53097929d8bb (diff)
downloadpfsense-packages-ad67ce370d55e5f220ee647ae3929a90175fb9e7.tar.gz
pfsense-packages-ad67ce370d55e5f220ee647ae3929a90175fb9e7.tar.bz2
pfsense-packages-ad67ce370d55e5f220ee647ae3929a90175fb9e7.zip
Make sure we deactivate when deleting package.
Diffstat (limited to 'packages/per-user-bandwidth-distribution.xml')
-rw-r--r--packages/per-user-bandwidth-distribution.xml8
1 files changed, 7 insertions, 1 deletions
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");
</custom_add_php_command>
-</packagegui>
+ <custom_deinstall_php_command>
+ mwexec("/sbin/ipfw delete 10");
+ mwexec("/sbin/kldunload dummynet");
+ mwexec("/sbin/kldunload ipfw");
+ </custom_deinstall_php_command>
+</packagegui> \ No newline at end of file