diff options
Diffstat (limited to 'packages/per-user-bandwidth-distribution.xml')
-rw-r--r-- | packages/per-user-bandwidth-distribution.xml | 8 |
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 |