From 0248a1809d2c1e2b5a4afeef9a9ffc66e9e62abb Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Thu, 17 Aug 2006 04:39:15 +0000 Subject: bugfixing --- packages/freenas/pkg/freenas.inc | 5 +++-- packages/freenas/pkg/freenas.xml | 12 ++++++------ packages/freenas/pkg/freenas_services.inc | 18 +++++++++--------- packages/freenas/www/diag_ad_infos.php | 1 + packages/freenas/www/diag_ataidle_infos.php | 1 + packages/freenas/www/diag_disk_infos.php | 1 + packages/freenas/www/diag_fn_logs_daemon.php | 3 ++- packages/freenas/www/diag_fn_logs_ftp.php | 3 ++- packages/freenas/www/diag_fn_logs_rsyncd.php | 3 ++- packages/freenas/www/diag_fn_logs_samba.php | 3 ++- packages/freenas/www/diag_fn_logs_settings.php | 3 ++- packages/freenas/www/diag_fn_logs_smartd.php | 3 ++- packages/freenas/www/diag_fn_logs_sshd.php | 3 ++- packages/freenas/www/diag_iscsi_infos.php | 1 + packages/freenas/www/diag_mounts_infos.php | 1 + packages/freenas/www/diag_part_infos.php | 1 + packages/freenas/www/diag_raid_infos.php | 1 + packages/freenas/www/diag_smart_infos.php | 1 + packages/freenas/www/diag_space_infos.php | 1 + packages/freenas/www/disks_manage.php | 1 + packages/freenas/www/disks_manage_edit.php | 1 + packages/freenas/www/disks_manage_init.php | 1 + packages/freenas/www/disks_manage_iscsi.php | 3 ++- packages/freenas/www/disks_mount.php | 1 + packages/freenas/www/disks_mount_edit.php | 1 + packages/freenas/www/disks_raid_gmirror.php | 1 + packages/freenas/www/disks_raid_gmirror_edit.php | 1 + packages/freenas/www/disks_raid_gmirror_infos.php | 8 ++++---- packages/freenas/www/disks_raid_gmirror_init.php | 1 + packages/freenas/www/disks_raid_gmirror_tools.php | 1 + packages/freenas/www/disks_raid_gvinum.php | 1 + packages/freenas/www/disks_raid_gvinum_edit.php | 1 + packages/freenas/www/disks_raid_gvinum_infos.php | 1 + packages/freenas/www/disks_raid_gvinum_init.php | 1 + packages/freenas/www/disks_raid_gvinum_tools.php | 3 ++- packages/freenas/www/services_afp.php | 1 + packages/freenas/www/services_ftp.php | 1 + packages/freenas/www/services_nfs.php | 1 + packages/freenas/www/services_rsyncd.php | 1 + packages/freenas/www/services_rsyncd_client.php | 1 + packages/freenas/www/services_samba.php | 1 + 41 files changed, 68 insertions(+), 30 deletions(-) (limited to 'packages/freenas') 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"); } ?> diff --git a/packages/freenas/pkg/freenas.xml b/packages/freenas/pkg/freenas.xml index 5acbbdc7..5c52cb08 100644 --- a/packages/freenas/pkg/freenas.xml +++ b/packages/freenas/pkg/freenas.xml @@ -6,18 +6,17 @@ /usr/local/pkg/freenas.inc - FreeNAS Disks + Disks
System
- freenas.xml - /disk_manage.php + /disks_manage.php
- FreeNAS RAID + RAID
System
/disks_raid_gmirror.php
- FreeNAS Mounts + Mounts
System
/disks_mount.php
@@ -282,7 +281,8 @@ /usr/local/pkg/ 0755 - http://www.pfsense.com/packages/config/freenas/pkg/rc.freenas + http://www.pfsense.com/packages/config/freenas/pkg/freenas_system.inc + diff --git a/packages/freenas/pkg/freenas_services.inc b/packages/freenas/pkg/freenas_services.inc index a2d8d531..26455f8f 100644 --- a/packages/freenas/pkg/freenas_services.inc +++ b/packages/freenas/pkg/freenas_services.inc @@ -18,7 +18,7 @@ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE @@ -488,7 +488,7 @@ pasv_high_range={$freenas_config['ftp']['pasv_max_port']} EOD; } - $ftpconf =. <<getHTML(); diff --git a/packages/freenas/www/disks_raid_gmirror_init.php b/packages/freenas/www/disks_raid_gmirror_init.php index c849be52..bb9a379a 100644 --- a/packages/freenas/www/disks_raid_gmirror_init.php +++ b/packages/freenas/www/disks_raid_gmirror_init.php @@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"), gettext("GEOM Mirror"), gettext("Initialize")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); diff --git a/packages/freenas/www/disks_raid_gmirror_tools.php b/packages/freenas/www/disks_raid_gmirror_tools.php index 714dea7f..35f9c5a9 100644 --- a/packages/freenas/www/disks_raid_gmirror_tools.php +++ b/packages/freenas/www/disks_raid_gmirror_tools.php @@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"), gettext("GEOM Mirror"), gettext("Tools")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); diff --git a/packages/freenas/www/disks_raid_gvinum.php b/packages/freenas/www/disks_raid_gvinum.php index 260fae14..47258f65 100644 --- a/packages/freenas/www/disks_raid_gvinum.php +++ b/packages/freenas/www/disks_raid_gvinum.php @@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"), gettext("GEOM Vinum"), gettext("RAID")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); diff --git a/packages/freenas/www/disks_raid_gvinum_edit.php b/packages/freenas/www/disks_raid_gvinum_edit.php index 45cbac88..dbf8ce1d 100644 --- a/packages/freenas/www/disks_raid_gvinum_edit.php +++ b/packages/freenas/www/disks_raid_gvinum_edit.php @@ -38,6 +38,7 @@ $pgtitle = array(gettext("System"), gettext("RAID"), gettext("Edit")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); diff --git a/packages/freenas/www/disks_raid_gvinum_infos.php b/packages/freenas/www/disks_raid_gvinum_infos.php index 7b9cfcb2..eceb63be 100644 --- a/packages/freenas/www/disks_raid_gvinum_infos.php +++ b/packages/freenas/www/disks_raid_gvinum_infos.php @@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"), gettext("GEOM Vinum"), gettext("Information")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); diff --git a/packages/freenas/www/disks_raid_gvinum_init.php b/packages/freenas/www/disks_raid_gvinum_init.php index 2befcaa0..8b899dff 100644 --- a/packages/freenas/www/disks_raid_gvinum_init.php +++ b/packages/freenas/www/disks_raid_gvinum_init.php @@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"), gettext("GEOM Vinum"), gettext("Initialize")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); diff --git a/packages/freenas/www/disks_raid_gvinum_tools.php b/packages/freenas/www/disks_raid_gvinum_tools.php index 97853e29..375c0224 100644 --- a/packages/freenas/www/disks_raid_gvinum_tools.php +++ b/packages/freenas/www/disks_raid_gvinum_tools.php @@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"), gettext("GEOM Vinum"), gettext("Tools")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); @@ -174,7 +175,7 @@ echo $pfSenseHead->getHTML(); /* Force object state up */ system("/sbin/gvinum setstate -f up " . escapeshellarg($object)); break; - case "saveconfig": + case "saveconfig": /* Save config */ system("/sbin/gvinum saveconfig"); break; diff --git a/packages/freenas/www/services_afp.php b/packages/freenas/www/services_afp.php index c3648b9f..deee46f0 100644 --- a/packages/freenas/www/services_afp.php +++ b/packages/freenas/www/services_afp.php @@ -35,6 +35,7 @@ $pgtitle = array(gettext("Services"), gettext("AFP")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); diff --git a/packages/freenas/www/services_ftp.php b/packages/freenas/www/services_ftp.php index da144349..3da55786 100644 --- a/packages/freenas/www/services_ftp.php +++ b/packages/freenas/www/services_ftp.php @@ -35,6 +35,7 @@ $pgtitle = array(gettext("Services"), gettext("FTP")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); diff --git a/packages/freenas/www/services_nfs.php b/packages/freenas/www/services_nfs.php index 403ea17c..3ad897e2 100644 --- a/packages/freenas/www/services_nfs.php +++ b/packages/freenas/www/services_nfs.php @@ -35,6 +35,7 @@ $pgtitle = array(gettext("Services"), gettext("NFS")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); diff --git a/packages/freenas/www/services_rsyncd.php b/packages/freenas/www/services_rsyncd.php index b28bca34..e4b744b7 100644 --- a/packages/freenas/www/services_rsyncd.php +++ b/packages/freenas/www/services_rsyncd.php @@ -36,6 +36,7 @@ $pgtitle = array(gettext("Services"), gettext("RSYNCD"), gettext("Server")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); diff --git a/packages/freenas/www/services_rsyncd_client.php b/packages/freenas/www/services_rsyncd_client.php index f5e86e07..ab54f562 100644 --- a/packages/freenas/www/services_rsyncd_client.php +++ b/packages/freenas/www/services_rsyncd_client.php @@ -36,6 +36,7 @@ $pgtitle = array(gettext("Services"), gettext("RSYNCD"), gettext("Client")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); diff --git a/packages/freenas/www/services_samba.php b/packages/freenas/www/services_samba.php index 1703b645..9486f8fc 100644 --- a/packages/freenas/www/services_samba.php +++ b/packages/freenas/www/services_samba.php @@ -35,6 +35,7 @@ $pgtitle = array(gettext("Services"), gettext("CIFS")); +require_once("freenas_config.inc"); require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); -- cgit v1.2.3