diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-28 23:20:22 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-28 23:20:22 +0000 |
commit | 0f87d74daa87ce894c926d1c55af918d8f9b5881 (patch) | |
tree | 3ea9cf221586f5ee5b0f50efec8fcf12e578a713 /packages | |
parent | 2e9a34963bc8e6f986aa4932e18944e8af5759c7 (diff) | |
download | pfsense-packages-0f87d74daa87ce894c926d1c55af918d8f9b5881.tar.gz pfsense-packages-0f87d74daa87ce894c926d1c55af918d8f9b5881.tar.bz2 pfsense-packages-0f87d74daa87ce894c926d1c55af918d8f9b5881.zip |
Remove rc.d file upon package deinstall
Diffstat (limited to 'packages')
-rw-r--r-- | packages/hula.xml | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/packages/hula.xml b/packages/hula.xml index f0870ae2..b76ddacb 100644 --- a/packages/hula.xml +++ b/packages/hula.xml @@ -38,25 +38,26 @@ <type>input</type> </field> </fields> - <custom_add_php_command> - conf_mount_rw(); - config_lock(); - system("/usr/local/hula/sbin/hulasetup --domain=" . $_POST['domain']); - system("/usr/local/etc/rc.d/hula.sh &"); - conf_mount_ro(); - config_unlock(); - </custom_add_php_command> - <custom_php_deinstall_command> - system("/usr/bin/killall -9 hulamanager"); - system("rm -rf /usr/local/hula"); - </custom_php_deinstall_command> - <custom_php_install_command> - system("rm /usr/local/etc/rc.d/hula.sh"); - $fout = fopen("/usr/local/etc/rc.d/hula.sh","w"); - fwrite($fout, "#!/bin/sh\n\n"); - fwrite($fout, "/sbin/mount -t linprocfs linprocfs /proc\n"); - fwrite($fout, "/usr/local/hula/sbin/hulamanager &\n"); - fclose($fout); - system("chmod 555 /usr/local/etc/rc.d/hula.sh &"); - </custom_php_install_command> + <custom_add_php_command> + conf_mount_rw(); + config_lock(); + system("/usr/local/hula/sbin/hulasetup --domain=" . $_POST['domain']); + system("/usr/local/etc/rc.d/hula.sh &"); + conf_mount_ro(); + config_unlock(); + </custom_add_php_command> + <custom_php_deinstall_command> + system("/usr/bin/killall -9 hulamanager"); + system("rm -rf /usr/local/hula"); + system("rm /usr/local/etc/rc.d/hula.sh"); + </custom_php_deinstall_command> + <custom_php_install_command> + system("rm /usr/local/etc/rc.d/hula.sh"); + $fout = fopen("/usr/local/etc/rc.d/hula.sh","w"); + fwrite($fout, "#!/bin/sh\n\n"); + fwrite($fout, "/sbin/mount -t linprocfs linprocfs /proc\n"); + fwrite($fout, "/usr/local/hula/sbin/hulamanager &\n"); + fclose($fout); + system("chmod 555 /usr/local/etc/rc.d/hula.sh &"); + </custom_php_install_command> </packagegui> |