From 0248a1809d2c1e2b5a4afeef9a9ffc66e9e62abb Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Thu, 17 Aug 2006 04:39:15 +0000 Subject: bugfixing --- packages/freenas/pkg/freenas.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packages/freenas/pkg/freenas.inc') diff --git a/packages/freenas/pkg/freenas.inc b/packages/freenas/pkg/freenas.inc index 4b21879f..1f514853 100644 --- a/packages/freenas/pkg/freenas.inc +++ b/packages/freenas/pkg/freenas.inc @@ -196,7 +196,7 @@ function custom_php_install_command() { if (! file_exists("/usr/local/etc/rc.d")) mwexec("mkdir -p /usr/local/etc/rc.d"); - + rename("/usr/local/pkg/rc.freenas", "/usr/local/etc/rc.d/rc.freenas"); chmod ("/usr/local/etc/rc.d/rc.freenas", 0755); } @@ -204,6 +204,7 @@ function custom_php_install_command() { function custom_php_deinstall_command() { oninstall_copy_kernel_binaries("deinstall"); oninstall_copy_misc_binaries("deinstall"); -} + if (! file_exists("/usr/local/etc/rc.d")) + mwexec("rm -rf /usr/local/etc/rc.d"); } ?> -- cgit v1.2.3