aboutsummaryrefslogtreecommitdiffstats
path: root/packages/bandwidthd/bandwidthd.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/bandwidthd/bandwidthd.inc')
-rw-r--r--packages/bandwidthd/bandwidthd.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/bandwidthd/bandwidthd.inc b/packages/bandwidthd/bandwidthd.inc
index f281526f..947a24a8 100644
--- a/packages/bandwidthd/bandwidthd.inc
+++ b/packages/bandwidthd/bandwidthd.inc
@@ -28,6 +28,12 @@
POSSIBILITY OF SUCH DAMAGE.
*/
+function bandwidthd_install_deinstall() {
+ exec("cd /var/db/pkg/ && pkg_delete `ls | grep bandwidthd`");
+ exec("rm /usr/local/etc/rc.d/bandwidthd*");
+ exec("rm -rf /usr/local/bandwidthd*");
+}
+
function bandwidthd_install_config() {
$meta_refresh = $config['installedpackages']['bandwidthd']['config'][0]['metarefresh'];