summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-03-22 08:56:51 -0300
committerRenato Botelho <renato@netgate.com>2016-03-22 08:56:51 -0300
commit630326d4e1c164de117831be5cdc68a9d8a4f5f7 (patch)
treea2cbf48bbe891acebd4b7c022fb9ee5ad84dbe41 /src/etc
parent89f3000edbce035f55a1d7a9ceae38550943c309 (diff)
downloadpfsense-630326d4e1c164de117831be5cdc68a9d8a4f5f7.zip
pfsense-630326d4e1c164de117831be5cdc68a9d8a4f5f7.tar.gz
Detect default config flavor
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/globals.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/etc/inc/globals.inc b/src/etc/inc/globals.inc
index 1c666b2..fb1bb6f 100644
--- a/src/etc/inc/globals.inc
+++ b/src/etc/inc/globals.inc
@@ -146,6 +146,13 @@ if (file_exists("/etc/platform")) {
}
}
+if (file_exists("{$g['etc_path']}/default-config-flavor")) {
+ $flavor_array = file("{$g['etc_path']}/default-config-flavor");
+ $g['default-config-flavor'] = chop($flavor_array[0]);
+} else {
+ $g['default-config-flavor'] = '';
+}
+
/* Default sysctls */
$sysctls = array("net.inet.ip.portrange.first" => "1024",
"net.inet.tcp.blackhole" => "2",
OpenPOWER on IntegriCloud