diff options
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.php_ini_setup | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index c63b493..b654b60 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -28,8 +28,11 @@ # Set our operating platform PLATFORM=`cat /etc/platform` EXTENSIONSDIR="/usr/local/lib/php/20060613/" -AVAILMEM=`cat /var/log/dmesg.boot | grep "memory" | grep "avail" | awk '{ print $5 }' | cut -d'(' -f2 | cut -d'M' -f1` - +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 |