diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-08-22 21:45:01 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-08-22 21:45:01 -0400 |
commit | 7030262c70735f144553b62826c71515c960f0ad (patch) | |
tree | 2f436ff4b3e6566ca063df407e32b1668058f90e /etc/rc.php_ini_setup | |
parent | 90108d9044037e3aa62e96c57fc2f2be702e0095 (diff) | |
download | pfsense-7030262c70735f144553b62826c71515c960f0ad.zip pfsense-7030262c70735f144553b62826c71515c960f0ad.tar.gz |
Take into account capital letters in the module name such as S in pfSense
Diffstat (limited to 'etc/rc.php_ini_setup')
-rwxr-xr-x | etc/rc.php_ini_setup | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index 9fd6b39..5479eed 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -259,9 +259,13 @@ if [ -f /var/run/php_modules_load_errors.txt ]; then rm /var/run/php_modules_load_errors.txt fi +for EXT in $PHPMODULES; do + PHPMODULESLC="$PHPMODULESLC `echo "$EXT" | tr '[:upper:]' '[:lower:]'`" +done + # Check loaded modules and remove anything that did not load correctly LOADED_MODULES=`php -m | tr '[:upper:]' '[:lower:]' 2>/dev/null | grep -v "\["` -for EXT in $PHPMODULES; do +for EXT in $PHPMODULESLC; do SHOULDREMOVE="true" for LM in $LOADED_MODULES; do if [ "$EXT" = "$LM" ]; then |