summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-14 16:18:42 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-14 16:18:42 -0400
commit816bfaaafd5fdec926885bb319e9ae0959cbc048 (patch)
treefc01f7d15e5565cb7bdbd6df7a0c4c0ed7f7e8c5 /etc/rc
parent37ca89c5b281d02f1db8324fd4b0317cde29eb76 (diff)
downloadpfsense-816bfaaafd5fdec926885bb319e9ae0959cbc048.zip
pfsense-816bfaaafd5fdec926885bb319e9ae0959cbc048.tar.gz
Patch from garga@ to resolve NanoBSD upgrade issues
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 9db22f6..6f9af63 100755
--- a/etc/rc
+++ b/etc/rc
@@ -245,6 +245,12 @@ echo "done."
# Recreate capabilities DB
cap_mkdb /etc/login.conf
+if [ "$PLATFORM" = "nanobsd" -o "$PLATFORM" = "embedded" ]; then
+ upload_tmp_dir="/root"
+else
+ upload_tmp_dir="/tmp"
+fi
+
if [ "$PLATFORM" != "cdrom" ]; then
# Populate a dummy php.ini to avoid
# the file being clobbered and the firewall
@@ -258,7 +264,7 @@ max_execution_time = 99999999
max_input_time = 99999999
register_argc_argv = Off
file_uploads = On
-upload_tmp_dir = /tmp
+upload_tmp_dir = ${upload_tmp_dir}
upload_max_filesize = 90M
post_max_size = 90M
html_errors = Off
OpenPOWER on IntegriCloud