diff options
Diffstat (limited to 'packages/freenas/pkg/freenas.inc')
-rw-r--r-- | packages/freenas/pkg/freenas.inc | 5 |
1 files changed, 3 insertions, 2 deletions
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"); } ?> |