diff options
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> |