diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-23 17:18:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-23 17:18:12 +0000 |
commit | 0efa34f7de5facc2b1ab801722d2f38f8c08ec85 (patch) | |
tree | ecce34cb3c82da61c0436fe511ca7bc470e1f87f /packages | |
parent | c0dbd950b3fa4e53f6348d7c49987461ef15f839 (diff) | |
download | pfsense-packages-0efa34f7de5facc2b1ab801722d2f38f8c08ec85.tar.gz pfsense-packages-0efa34f7de5facc2b1ab801722d2f38f8c08ec85.tar.bz2 pfsense-packages-0efa34f7de5facc2b1ab801722d2f38f8c08ec85.zip |
Remove package correctly from system
Diffstat (limited to 'packages')
-rw-r--r-- | packages/freeradius.inc | 5 | ||||
-rw-r--r-- | packages/freeradius.xml | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/packages/freeradius.inc b/packages/freeradius.inc index cdc7a422..29736eca 100644 --- a/packages/freeradius.inc +++ b/packages/freeradius.inc @@ -4,6 +4,11 @@ require_once('service-utils.inc'); define('RADDB', '/usr/local/etc/raddb'); +function freeradius_deinstall_command() { + exec("cd /var/db/pkg && pkg_delete `ls | grep freeradius`"); + exec("cd /var/db/pkg && pkg_delete `ls | grep libltdl`"); +} + function freeradius_install_command() { global $config; diff --git a/packages/freeradius.xml b/packages/freeradius.xml index b39c5410..a116576a 100644 --- a/packages/freeradius.xml +++ b/packages/freeradius.xml @@ -16,6 +16,9 @@ <custom_php_install_command> freeradius_install_command(); </custom_php_install_command> + <custom_php_deinstall_command> + freeradius_deinstall_command(); + </custom_php_deinstall_command> <menu> <name>FreeRADIUS</name> <tooltiptext>Modify FreeRADIUS users, clients, and settings.</tooltiptext> |