diff options
author | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-08-17 04:39:15 +0000 |
---|---|---|
committer | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-08-17 04:39:15 +0000 |
commit | 0248a1809d2c1e2b5a4afeef9a9ffc66e9e62abb (patch) | |
tree | 9fb0166b5b9397c1e99de2db82d862f03798f85a /packages/freenas/pkg/freenas.inc | |
parent | ebbd99ff36043e6fd4428bb0a520ff40dddeb3b4 (diff) | |
download | pfsense-packages-0248a1809d2c1e2b5a4afeef9a9ffc66e9e62abb.tar.gz pfsense-packages-0248a1809d2c1e2b5a4afeef9a9ffc66e9e62abb.tar.bz2 pfsense-packages-0248a1809d2c1e2b5a4afeef9a9ffc66e9e62abb.zip |
bugfixing
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"); } ?> |