summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-12-20 17:11:46 -0500
committerChris Buechler <cmb@pfsense.org>2009-12-20 17:11:46 -0500
commit9f27439310d5262364480950d8c90ef8c8f4d4ae (patch)
tree1a3258cd51731fb70230fef53a95911a3c4293a0
parent7c8dcff2b67df173eb7a8580ce5d2757f3bd8edc (diff)
downloadpfsense-9f27439310d5262364480950d8c90ef8c8f4d4ae.zip
pfsense-9f27439310d5262364480950d8c90ef8c8f4d4ae.tar.gz
Use the globals for minimum RAM warning, drop limit a little to accommodate 128 MB RAM systems
-rw-r--r--etc/inc/globals.inc4
-rwxr-xr-xetc/rc.bootup4
2 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index 4fa60d9..6639558 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -89,8 +89,8 @@ $g = array(
"debug" => false,
"latest_config" => "6.0",
"nopkg_platforms" => array("cdrom"),
- "minimum_ram_warning" => "115",
- "minimum_ram_warning_text" => "128 megabytes",
+ "minimum_ram_warning" => "110",
+ "minimum_ram_warning_text" => "128 MB",
"minimum_nic_count" => "1",
"minimum_nic_count_text" => "*AT LEAST* 1",
"wan_interface_name" => "wan",
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 5ca8a80..794a17e 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -341,9 +341,9 @@ if($config['system']['afterbootupshellcmd'] <> "") {
mwexec($config['system']['afterbootupshellcmd']);
}
-if($avail < 126) {
+if($avail < $g['minimum_ram_warning']) {
require_once("/etc/inc/notices.inc");
- file_notice("{$g['product_name']}MemoryRequirements", "{$g['product_name']} requires atleast 128 megabytes of RAM. Expect unusual performance. This platform is not supported.", "Memory", "", 1);
+ file_notice("{$g['product_name']}MemoryRequirements", "{$g['product_name']} requires at least {$g['minimum_ram_warning_text']} of RAM. Expect unusual performance. This platform is not supported.", "Memory", "", 1);
mwexec("sysctl net.inet.tcp.recvspace=4096");
mwexec("sysctl net.inet.tcp.sendspace=4096");
}
OpenPOWER on IntegriCloud