aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freenas/pkg/freenas.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/freenas/pkg/freenas.inc')
-rw-r--r--packages/freenas/pkg/freenas.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/freenas/pkg/freenas.inc b/packages/freenas/pkg/freenas.inc
index b06d5db8..692a526b 100644
--- a/packages/freenas/pkg/freenas.inc
+++ b/packages/freenas/pkg/freenas.inc
@@ -236,8 +236,8 @@ 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);
+ rename("/usr/local/pkg/rc.freenas", "/usr/local/etc/rc.d/freenas.sh");
+ chmod ("/usr/local/etc/rc.d/freenas.sh", 0755);
mwexec("ln -s /usr/local/etc/uams/uams_passwd.so /usr/local/etc/uams/uams_clrtxt.so");
mwexec("ln -s /usr/local/etc/uams/uams_dhx_passwd.so /usr/local/etc/uams/uams_dhx.so");
@@ -254,6 +254,7 @@ function custom_php_deinstall_command() {
unlink_if_exists("/usr/local/etc/uams/uams_clrtxt.so");
unlink_if_exists("/usr/local/etc/uams/uams_dhx.so");
+ unlink_if_exists("/usr/local/etc/rc.d/freenas.sh");
unset($config['installedpackages']['freenas']);
write_config();