summaryrefslogtreecommitdiffstats
path: root/etc/rc.php_ini_setup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-12-22 22:58:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-12-22 22:58:07 +0000
commit2ed3203cd26e42efbe830b5fee848a2e9ebada05 (patch)
treef1bd84bc734ef5b44f2a8caea5db3366cf5c5940 /etc/rc.php_ini_setup
parent7fbca3f7de09c7f63163832c6dfda3d6ec8f9274 (diff)
downloadpfsense-2ed3203cd26e42efbe830b5fee848a2e9ebada05.zip
pfsense-2ed3203cd26e42efbe830b5fee848a2e9ebada05.tar.gz
Remove platform check. Even CDROM platform has unionfs now on RELENG_1
Diffstat (limited to 'etc/rc.php_ini_setup')
-rwxr-xr-xetc/rc.php_ini_setup16
1 files changed, 7 insertions, 9 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup
index 8fb924e..4df3d76 100755
--- a/etc/rc.php_ini_setup
+++ b/etc/rc.php_ini_setup
@@ -34,11 +34,11 @@ mv /usr/local/etc/php.ini /tmp/
mv /usr/local/lib/php.ini /tmp/
LOADED_MODULES=`php -m | grep -v "\["`
-if [ "$PLATFORM" != "cdrom" ]; then
- # Populate a dummy php.ini to avoid
- # the file being clobbered and the firewall
- # not being able to boot back up.
- cat >/usr/local/lib/php.ini <<EOF
+
+# Populate a dummy php.ini to avoid
+# the file being clobbered and the firewall
+# not being able to boot back up.
+cat >/usr/local/lib/php.ini <<EOF
; File generated from /etc/rc.php_ini_setup
output_buffering = "0"
expose_php = Off
@@ -77,9 +77,9 @@ done
RAM=`sysctl hw.realmem | awk '{print $2/1000000}' | awk -F '.' '{print $1}'`
export RAM
- if [ $RAM -gt 96 ]; then
+if [ $RAM -gt 96 ]; then
- cat >>/usr/local/lib/php.ini <<EOF
+ cat >>/usr/local/lib/php.ini <<EOF
; APC Settings
apc.enabled="1"
@@ -88,8 +88,6 @@ apc.shm_size="25"
EOF
- fi
-
fi
cp /usr/local/lib/php.ini /usr/local/etc/php.ini
OpenPOWER on IntegriCloud