aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-02-03 05:01:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2009-02-03 05:01:37 +0000
commite392931d4d1cd34ec2603c78f8c7b48782c10a4e (patch)
treebf78124748bc452dd7fc99e09edacd7352abc116
parent0a65abbbe3934f2d5517bdf784169b56e5d363bd (diff)
downloadpfsense-packages-e392931d4d1cd34ec2603c78f8c7b48782c10a4e.tar.gz
pfsense-packages-e392931d4d1cd34ec2603c78f8c7b48782c10a4e.tar.bz2
pfsense-packages-e392931d4d1cd34ec2603c78f8c7b48782c10a4e.zip
Move delte function to xml to avoid error
-rw-r--r--packages/avahi/avahi.xml6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/avahi/avahi.xml b/packages/avahi/avahi.xml
index b603f61b..6baef60b 100644
--- a/packages/avahi/avahi.xml
+++ b/packages/avahi/avahi.xml
@@ -77,16 +77,14 @@
</field>
</fields>
<custom_add_php_command>
- require_once("avahi.inc");
setup_avahi();
</custom_add_php_command>
<custom_php_install_command>
- require_once("avahi.inc");
setup_avahi();
</custom_php_install_command>
<custom_php_deinstall_command>
- require_once("avahi.inc");
- delete_avahi();
+ unlink_if_exists("/usr/local/etc/rc.d/avahi-daemon.sh");
+ exec("killall avahi-daemon");
</custom_php_deinstall_command>
<include_file>/usr/local/pkg/avahi.inc</include_file>
</packagegui>