aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--packages/freenas/pkg/freenas.inc6
-rw-r--r--packages/freenas/pkg/freenas.xml5
-rw-r--r--packages/freenas/pkg/freenas_functions.inc1
-rw-r--r--packages/freenas/pkg/freenas_system.inc2
4 files changed, 14 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() {
diff --git a/packages/freenas/pkg/freenas.xml b/packages/freenas/pkg/freenas.xml
index ef90cf2b..881c9881 100644
--- a/packages/freenas/pkg/freenas.xml
+++ b/packages/freenas/pkg/freenas.xml
@@ -274,6 +274,11 @@
<chmod>0755</chmod>
<item>http://www.pfsense.com/packages/config/freenas/pkg/freenas_utils.inc</item>
</additional_files_needed>
+ <additional_files_needed>
+ <prefix>/usr/local/pkg/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.com/packages/config/freenas/pkg/rc.freenas</item>
+ </additional_files_needed>
<!-- kernel binaries -->
<additional_files_needed>
<prefix>/usr/local/pkg/</prefix>
diff --git a/packages/freenas/pkg/freenas_functions.inc b/packages/freenas/pkg/freenas_functions.inc
index e5ca52e3..77980ea9 100644
--- a/packages/freenas/pkg/freenas_functions.inc
+++ b/packages/freenas/pkg/freenas_functions.inc
@@ -36,4 +36,5 @@ require_once ("freenas_disks.inc");
require_once ("freenas_utils.inc");
require_once ("freenas_services.inc");
require_once ("freenas_system.inc");
+
?> \ No newline at end of file
diff --git a/packages/freenas/pkg/freenas_system.inc b/packages/freenas/pkg/freenas_system.inc
index 89c210e2..f3da6aa4 100644
--- a/packages/freenas/pkg/freenas_system.inc
+++ b/packages/freenas/pkg/freenas_system.inc
@@ -30,6 +30,8 @@
POSSIBILITY OF SUCH DAMAGE.
*/
+require_once("globals.inc");
+
$freenas_config =& $config['installedpackages']['freenas']['config'][0];
function system_do_extensions($early = false) {