diff options
author | Scott Ullrich <sullrich@gmail.com> | 2012-01-18 11:10:44 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@gmail.com> | 2012-01-18 11:10:44 -0500 |
commit | 79454450b50c170a4d9c874672e6ae1bbed05c91 (patch) | |
tree | 7f1d82edbed305f063a3b48bb97155762abde96a | |
parent | 1f4f9c7ce720df9ad07392683a38f3f1ace2760d (diff) | |
download | pfsense-79454450b50c170a4d9c874672e6ae1bbed05c91.zip pfsense-79454450b50c170a4d9c874672e6ae1bbed05c91.tar.gz |
Test for newer 20090626 PHP_EXT_DIR
-rwxr-xr-x | etc/rc.php_ini_setup | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index ee277c0..c74a03a 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -29,6 +29,13 @@ PLATFORM=`/bin/cat /etc/platform` EXTENSIONSDIR="/usr/local/lib/php/20060613/" +if [ -d /usr/local/lib/php/20090626 ]; then + EXTENSIONSDIR="/usr/local/lib/php/20090626/" + +else + EXTENSIONSDIR="/usr/local/lib/php/20060613/" +fi + # Grab amount of memory that is detected if [ -f /var/log/dmesg.boot ]; then AVAILMEM=`/bin/cat /var/log/dmesg.boot |/usr/bin/awk '/avail memory/ { memory=($4 / 1048576); printf("%0.0f\n", memory); exit}'` |