#!/bin/sh
DSMMAJOR=`/bin/get_key_value /etc.defaults/VERSION majorversion`
if [ ${DSMMAJOR} -ge 6 ] ; then
     CPATH=`dirname $0`
     PHPVERSIONS=`${CPATH}/php_status.sh status`
     if [ -n "${PHPVERSIONS}" ] ; then
          exit 0
     else
          if [ "${SYNOPKG_DSM_LANGUAGE}" = "ger" ] ; then
               /bin/cat ${CPATH}/php_de.txt > ${SYNOPKG_TEMP_LOGFILE}
          else
               /bin/cat ${CPATH}/php_en.txt > ${SYNOPKG_TEMP_LOGFILE}
          fi
          exit 1
     fi
fi
exit 0
