summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-01-20 14:43:37 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-01-20 14:43:37 -0500
commit0ebc8ca1f9a1b0725b89784d64fe5c34099f86b0 (patch)
tree3def6b76a1fcdb12633137f8af3cb6add6bdf8c7 /etc/inc/config.inc
parentc317e04ef45abf7345d0b7345b1b5b4153c5c6e8 (diff)
downloadpfsense-0ebc8ca1f9a1b0725b89784d64fe5c34099f86b0.zip
pfsense-0ebc8ca1f9a1b0725b89784d64fe5c34099f86b0.tar.gz
Use $g['product_name'] instead of pfSense
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc30
1 files changed, 15 insertions, 15 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index b8356b6..834ff9c 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -85,7 +85,7 @@ if(file_exists("/cf/conf/config.xml")) {
if(stristr($config_contents, "<m0n0wall>") == true) {
if($g['booting']) echo ".";
/* user has just upgraded to m0n0wall, replace root xml tags */
- log_error("Upgrading m0n0wall configuration to pfSense... ");
+ log_error("Upgrading m0n0wall configuration to {$g['product_name']}... ");
$config_contents = str_replace("m0n0wall","pfsense", $config_contents);
if (!config_validate("{$g['conf_path']}/config.xml"))
log_error("ERROR! Could not convert m0n0wall -> pfsense in config.xml");
@@ -166,7 +166,7 @@ if ($g['booting'] and !file_exists($g['cf_conf_path'] . "/config.xml") ) {
$last_backup = discover_last_backup();
if($last_backup) {
log_error("No config.xml found, attempting last known config restore.");
- file_notice("config.xml", "No config.xml found, attempting last known config restore.", "pfSenseConfigurator", "");
+ file_notice("config.xml", "No config.xml found, attempting last known config restore.", "{$g['product_name']}Configurator", "");
restore_backup("/cf/conf/backup/{$last_backup}");
} else {
/* no device found, print an error and die */
@@ -175,7 +175,7 @@ if ($g['booting'] and !file_exists($g['cf_conf_path'] . "/config.xml") ) {
*******************************************************************************
* FATAL ERROR *
* The device that contains the configuration file (config.xml) could not be *
-* found. pfSense cannot continue booting. *
+* found. {$g['product_name']} cannot continue booting. *
*******************************************************************************
@@ -219,7 +219,7 @@ function parse_config($parse = false) {
$last_backup = discover_last_backup();
if($last_backup) {
log_error("No config.xml found, attempting last known config restore.");
- file_notice("config.xml", "No config.xml found, attempting last known config restore.", "pfSenseConfigurator", "");
+ file_notice("config.xml", "No config.xml found, attempting last known config restore.", "{$g['product_name']}Configurator", "");
restore_backup("{$g['conf_path']}/backup/{$last_backup}");
} else {
die("Config.xml is corrupted and is 0 bytes. Could not restore a previous backup.");
@@ -238,7 +238,7 @@ function parse_config($parse = false) {
config_unlock();
if(!file_exists($g['conf_path'] . "/config.xml")) {
log_error("No config.xml found, attempting last known config restore.");
- file_notice("config.xml", "No config.xml found, attempting last known config restore.", "pfSenseConfigurator", "");
+ file_notice("config.xml", "No config.xml found, attempting last known config restore.", "{$g['product_name']}Configurator", "");
$last_backup = discover_last_backup();
if ($last_backup)
restore_backup("/cf/conf/backup/{$last_backup}");
@@ -251,7 +251,7 @@ function parse_config($parse = false) {
if(!file_exists($g['conf_path'] . "/config.xml")) {
if($g['booting']) echo ".";
log_error("No config.xml found, attempting last known config restore.");
- file_notice("config.xml", "No config.xml found, attempting last known config restore.", "pfSenseConfigurator", "");
+ file_notice("config.xml", "No config.xml found, attempting last known config restore.", "{$g['product_name']}Configurator", "");
$last_backup = discover_last_backup();
if ($last_backup)
restore_backup("/cf/conf/backup/{$last_backup}");
@@ -331,8 +331,8 @@ function restore_backup($file) {
conf_mount_rw();
copy("$file","/cf/conf/config.xml");
unlink_if_exists("/tmp/config.cache");
- log_error("pfSense is restoring the configuration $file");
- file_notice("config.xml", "pfSense is restoring the configuration $file", "pfSenseConfigurator", "");
+ log_error("{$g['product_name']} is restoring the configuration $file");
+ file_notice("config.xml", "{$g['product_name']} is restoring the configuration $file", "{$g['product_name']}Configurator", "");
mwexec("sync");
conf_mount_ro();
}
@@ -368,11 +368,11 @@ function parse_config_bootup() {
$last_backup = discover_last_backup();
if($last_backup) {
log_error("No config.xml found, attempting last known config restore.");
- file_notice("config.xml", "No config.xml found, attempting last known config restore.", "pfSenseConfigurator", "");
+ file_notice("config.xml", "No config.xml found, attempting last known config restore.", "{$g['product_name']}Configurator", "");
restore_backup("/cf/conf/backup/{$last_backup}");
}
if(!file_exists("{$g['conf_path']}/config.xml")) {
- echo "XML configuration file not found. pfSense cannot continue booting.\n";
+ echo "XML configuration file not found. {$g['product_name']} cannot continue booting.\n";
mwexec("/sbin/halt");
exit;
}
@@ -403,9 +403,9 @@ function parse_config_bootup() {
*******************************************************************************
* WARNING! *
-* The current configuration has been created with a newer version of pfSense *
+* The current configuration has been created with a newer version of {$g['product_name']} *
* than this one! This can lead to serious misbehavior and even security *
-* holes! You are urged to either upgrade to a newer version of pfSense or *
+* holes! You are urged to either upgrade to a newer version of {$g['product_name']} or *
* revert to the default configuration immediately! *
*******************************************************************************
@@ -1277,7 +1277,7 @@ function set_networking_interfaces_ports() {
if($avail < 115) {
echo "\n\n\n";
echo "DANGER! WARNING!\n\n";
- echo "pfSense requires *AT LEAST* 128 megs of ram to function correctly.\n";
+ echo "{$g['product_name']} requires *AT LEAST* 128 megs of ram to function correctly.\n";
echo "Only ($avail) megs of ram has been detected.\n";
echo "\nPress ENTER to continue.";
fgets($fp);
@@ -1330,11 +1330,11 @@ EOD;
echo <<<EOD
-*NOTE* pfSense requires *AT LEAST* 2 assigned interfaces to function.
+*NOTE* {$g['product_name']} requires *AT LEAST* 2 assigned interfaces to function.
If you do not have two interfaces you CANNOT continue.
If you do not have at least two *REAL* network interface cards
- or one interface with multiple VLANs then pfSense *WILL NOT*
+ or one interface with multiple VLANs then {$g['product_name']} *WILL NOT*
function correctly.
If you do not know the names of your interfaces, you may choose to use
OpenPOWER on IntegriCloud