diff options
-rw-r--r-- | packages/bandwidthd/bandwidthd.inc | 6 | ||||
-rw-r--r-- | packages/bandwidthd/bandwidthd.xml | 1 |
2 files changed, 7 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']; diff --git a/packages/bandwidthd/bandwidthd.xml b/packages/bandwidthd/bandwidthd.xml index d102f19a..fc66f5ef 100644 --- a/packages/bandwidthd/bandwidthd.xml +++ b/packages/bandwidthd/bandwidthd.xml @@ -27,6 +27,7 @@ bandwidthd_install_config(); </custom_php_install_command> <custom_php_deinstall_command> + bandwidthd_install_deinstall(); </custom_php_deinstall_command> <custom_php_resync_config_command> </custom_php_resync_config_command> |