summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-12 15:09:05 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-12 15:09:05 -0400
commit37ca89c5b281d02f1db8324fd4b0317cde29eb76 (patch)
tree56c2a4d03ed3449d9b8979086c2c3fb6dddef26d
parenta9d6bfc4ac53129cb02fa6ad36ec892e61be7b3c (diff)
downloadpfsense-37ca89c5b281d02f1db8324fd4b0317cde29eb76.zip
pfsense-37ca89c5b281d02f1db8324fd4b0317cde29eb76.tar.gz
Cleanup NanoBSD firmware upgrade
-rw-r--r--etc/inc/system.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 0789776..e9d7578 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -37,6 +37,11 @@ function opcode_cache_configuration() {
if($g['platform'] == "cdrom")
return;
+ if($g['platform'] == "nanobsd" || $g['platform'] == "embedded")
+ $upload_tmp_dir = "/root";
+ else
+ $upload_tmp_dir = "/tmp";
+
/* get system memory amount */
$memory = get_memory();
$avail = $memory[0];
@@ -64,7 +69,7 @@ memory_limit = 32M
register_argc_argv = On
file_uploads = On
extension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/
-upload_tmp_dir = /tmp
+upload_tmp_dir = {$upload_tmp_dir}
upload_max_filesize = 100M
post_max_size = 100M
html_errors = Off
@@ -1281,4 +1286,4 @@ function system_enable_arp_wrong_if() {
mwexec("/sbin/sysctl -n net.link.ether.inet.log_arp_movements=1");
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud