From a6cb09d6671e4dee123e76bb82f15cc897f919ad Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Thu, 4 Jan 2007 12:35:03 +0000 Subject: * synced freenas package to current FreeNAS trunk * unison package file needs to be added to pfsense.com * rc script needs to be tested --- packages/freenas/pkg/freenas_guiconfig.inc | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'packages/freenas/pkg/freenas_guiconfig.inc') diff --git a/packages/freenas/pkg/freenas_guiconfig.inc b/packages/freenas/pkg/freenas_guiconfig.inc index 8acd5ff4..7dd5ec47 100644 --- a/packages/freenas/pkg/freenas_guiconfig.inc +++ b/packages/freenas/pkg/freenas_guiconfig.inc @@ -35,6 +35,8 @@ $d_diskdirty_path = $g['varrun_path'] . "/disk.dirty"; $d_raidconfdirty_path = $g['varrun_path'] . "/raid.conf.dirty"; $d_userconfdirty_path = $g['varrun_path'] . "/user.conf.dirty"; $d_groupconfdirty_path = $g['varrun_path'] . "/group.conf.dirty"; +$d_smbshareconfdirty_path = $g['varrun_path'] . "/smbshare.conf.dirty"; +$d_upnpconfdirty_path = $g['varrun_path'] . "/upnp.conf.dirty"; $freenas_config =& $config['installedpackages']['freenas']['config'][0]; @@ -80,6 +82,39 @@ function gmirror_sort() { } +function gconcat_sort() { + global $g, $config; + + function gconcatcmp($a, $b) { + return strcmp($a['name'], $b['name']); + } + + usort($config['gconcat']['vdisk'], "gconcatcmp"); + +} + +function gstripe_sort() { + global $g, $config; + + function gstripecmp($a, $b) { + return strcmp($a['name'], $b['name']); + } + + usort($config['gstripe']['vdisk'], "gstripecmp"); + +} + +function graid5_sort() { + global $g, $config; + + function graid5cmp($a, $b) { + return strcmp($a['name'], $b['name']); + } + + usort($config['graid5']['vdisk'], "graid5cmp"); + +} + /* TODO: This needs to be changed */ function users_sort() { global $g, $config; -- cgit v1.2.3