aboutsummaryrefslogtreecommitdiffstats
path: root/config/Fit123/fit123.inc
diff options
context:
space:
mode:
authorPerry Mason <crazypark2@yahoo.dk>2009-03-17 19:47:20 +0100
committerPerry Mason <crazypark2@yahoo.dk>2009-03-17 19:47:20 +0100
commit58851f1c7f48cbe513e9bd0579f741431c687627 (patch)
treeac5877eae06b2d66fdbbf0e27943e17ad93f646a /config/Fit123/fit123.inc
parent576072358f0090f42fe4935eb0da37e566f4c88a (diff)
downloadpfsense-packages-58851f1c7f48cbe513e9bd0579f741431c687627.tar.gz
pfsense-packages-58851f1c7f48cbe513e9bd0579f741431c687627.tar.bz2
pfsense-packages-58851f1c7f48cbe513e9bd0579f741431c687627.zip
dns server 3th and 4th option added
Diffstat (limited to 'config/Fit123/fit123.inc')
-rw-r--r--config/Fit123/fit123.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/Fit123/fit123.inc b/config/Fit123/fit123.inc
index 4dcc2f36..646ab65f 100644
--- a/config/Fit123/fit123.inc
+++ b/config/Fit123/fit123.inc
@@ -27,6 +27,8 @@ function Fit123_install_config() {
//LTSP network boot Option
exec("cp /etc/inc/services.inc /usr/local/pkg/Fit123/backup/");
exec("cp /usr/local/www/services_dhcp.php /usr/local/pkg/Fit123/backup/");
+ //DNS Server adds option for a 3th and 4th DNS Server
+ exec("cp /usr/local/www/system.php /usr/local/pkg/Fit123/backup/");
//Greate directories and downloading files to them
//Date
exec("mkdir /usr/local/pkg/Fit123/date");
@@ -47,6 +49,9 @@ function Fit123_install_config() {
exec("chmod 744 /usr/local/pkg/Fit123/afc/reset_states.sh");
//DDNS
exec("mkdir /usr/local/pkg/Fit123/ddns");
+ //DNS Server adds option for a 3th and 4th DNS Server
+ exec("mkdir /usr/local/pkg/Fit123/dnssrv");
+ exec("fetch -o /usr/local/pkg/Fit123/dnssrv/system.php http://www.pfsense.com/packages/config/Fit123/bin/dnssrv/system.abc");
conf_mount_ro();
config_unlock();
}
@@ -91,6 +96,12 @@ global $config;
$config['system']['afterfilterchangeshellcmd'] = "/usr/local/bin/reset_states.sh";
else
$config['system']['afterfilterchangeshellcmd'] = "";
+
+ $dnssrv = $config['installedpackages']['fit123']['config'][0]['dnssrv'];
+ if($dnssrv)
+ exec("cp /usr/local/pkg/Fit123/dnssrv/system.php /usr/local/www/system.php");
+ else
+ exec("cp /usr/local/pkg/Fit123/backup/system.php /usr/local/www/system.php");
}
function ddns_config(){