summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-09-05 14:25:43 -0400
committerjim-p <jimp@pfsense.org>2013-09-05 14:27:42 -0400
commit8346b5c462bf349f8f81a3af4466c03e95a3d01a (patch)
treedc8515599ce2504ffb002319ba903b4e7a545213
parent9d7ca11fce0498dbc685dc2b64747ee6a2a11111 (diff)
downloadpfsense-8346b5c462bf349f8f81a3af4466c03e95a3d01a.zip
pfsense-8346b5c462bf349f8f81a3af4466c03e95a3d01a.tar.gz
Allow for easier override on $g values if needed.
-rw-r--r--etc/inc/globals.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index 07dd413..2c3fb62 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -34,6 +34,7 @@
*/
+global $g;
$g = array(
"base_packages" => "siproxd",
"event_address" => "unix:///var/run/check_reload_status",
@@ -152,6 +153,10 @@ $sysctls = array("net.inet.ip.portrange.first" => "1024",
"net.inet.udp.checksum" => 1
);
+/* Include override values for the above if needed. If the file doesn't exist, don't try to load it. */
+if (file_exists("/etc/inc/globals_override.inc"))
+ @include("globals_override.inc");
+
$config_parsed = false;
?>
OpenPOWER on IntegriCloud