aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-04 08:22:01 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-04 08:22:01 +0000
commit7195637dbcf514bf316090683406cea4266d4933 (patch)
tree4cd401d91f102d7e4703363a382893373da6c22a /packages
parent5d509ba4ce99622b30c3bdd1072deca6f08c4e3d (diff)
downloadpfsense-packages-7195637dbcf514bf316090683406cea4266d4933.tar.gz
pfsense-packages-7195637dbcf514bf316090683406cea4266d4933.tar.bz2
pfsense-packages-7195637dbcf514bf316090683406cea4266d4933.zip
Deinstall.
Diffstat (limited to 'packages')
-rw-r--r--packages/bandwidthd/bandwidthd.inc6
-rw-r--r--packages/bandwidthd/bandwidthd.xml1
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>