diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/freenas/pkg/freenas.inc | 6 | ||||
-rw-r--r-- | packages/freenas/pkg/freenas.xml | 5 | ||||
-rw-r--r-- | packages/freenas/pkg/freenas_functions.inc | 1 | ||||
-rw-r--r-- | packages/freenas/pkg/freenas_system.inc | 2 |
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) { |