diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-11-21 18:30:00 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-11-21 18:30:00 -0500 |
commit | c44417f85c3981e3038dce7cce795c9e571844df (patch) | |
tree | 7ae4587e2afd8f44d9d15f05240d6ab78f3dc1fa /etc | |
parent | 47eee8fabef9406ff2a6a7d6465ffd270de11a83 (diff) | |
download | pfsense-c44417f85c3981e3038dce7cce795c9e571844df.zip pfsense-c44417f85c3981e3038dce7cce795c9e571844df.tar.gz |
Include captiveportal for captiveportal_radius_stop_all()
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.php_ini_setup | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index b654b60..fb32c32 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -28,11 +28,14 @@ # Set our operating platform PLATFORM=`cat /etc/platform` EXTENSIONSDIR="/usr/local/lib/php/20060613/" + +# Grab amount of memory that is deteceted if [ -f /var/log/dmesg.boot ]; then AVAILMEM=`cat /var/log/dmesg.boot | grep "memory" | grep "avail" | awk '{ print $5 }' | cut -d'(' -f2 | cut -d'M' -f1` else AVAILMEM=`dmesg -a | grep "memory" | grep "avail" | awk '{ print $5 }' | cut -d'(' -f2 | cut -d'M' -f1` fi + # Calculate APC SHM size according # to detected memory values if [ "$AVAILMEM" -lt "128" ]; then @@ -64,35 +67,23 @@ fi # Define php modules. Do not add .so, it will # be done automatically by the script below. PHPMODULES="apc \ - bcmath \ - bz2 \ - ctype \ curl \ date \ - json \ gettext \ ldap \ - libxml \ - mbstring \ - mhash \ - mysql \ openssl \ pcntl \ pcre \ posix \ readline \ - Reflection \ session \ shmop \ - sockets \ standard \ suhosin \ sysvmsg \ sysvsem \ sysvshm \ - sqlite \ - tokenizer \ - uploadprogress \ + libxml \ xml \ xmlreader \ zlib" @@ -126,12 +117,16 @@ html_errors = Off zlib.output_compression = On zlib.output_compression_level = 1 include_path = ".:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg" -uploadprogress.file.filename_template = /tmp/uploadprogress_%s.txt extension_dir=${EXTENSIONSDIR} ; Extensions EOF +if [ -d /etc/php_dynamodules ]; then + DYNA_MODULES=`ls /etc/php_dynamodules/` + PHPMODULES="$PHPMODULES $DYNA_MODULES" +fi + # Loop through and generate modules to load. # Take into account modules built into php. for EXT in $PHPMODULES; do |