aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freenas/pkg/freenas.inc
diff options
context:
space:
mode:
authorDaniel Stefan Haischt <dsh@pfsense.org>2006-08-15 20:45:17 +0000
committerDaniel Stefan Haischt <dsh@pfsense.org>2006-08-15 20:45:17 +0000
commita0ac69006528da13a602d4f0c1bf7ec96bdfa9ae (patch)
tree7faefeab0d8d1e00c58b3c976a5cac164c8bb216 /packages/freenas/pkg/freenas.inc
parent2012a429701ef9aa170dfe5ec90bf4914242c639 (diff)
downloadpfsense-packages-a0ac69006528da13a602d4f0c1bf7ec96bdfa9ae.tar.gz
pfsense-packages-a0ac69006528da13a602d4f0c1bf7ec96bdfa9ae.tar.bz2
pfsense-packages-a0ac69006528da13a602d4f0c1bf7ec96bdfa9ae.zip
added rc.freenas as a replacement for the original FreeNAS rc.bootup
Diffstat (limited to 'packages/freenas/pkg/freenas.inc')
-rw-r--r--packages/freenas/pkg/freenas.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/freenas/pkg/freenas.inc b/packages/freenas/pkg/freenas.inc
index b95aa90b..4b21879f 100644
--- a/packages/freenas/pkg/freenas.inc
+++ b/packages/freenas/pkg/freenas.inc
@@ -193,6 +193,12 @@ function custom_php_install_command() {
oninstall_copy_misc_binaries();
adjust_package_contents();
oninstall_setup_config();
+
+ 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);
}
function custom_php_deinstall_command() {