#!/bin/sh
USEPERL=""
USEIPKG=""
if [ -f /opt/bin/ipkg ] ; then
     USEIPKG="ipkg";
elif [ -f /opt/bin/opkg-cl ] ; then
     USEIPKG="opkg";
fi

if [ -z "$USEIPKG" ] ; then
	if [ "$SYNOPKG_DSM_LANGUAGE" = "ger" ] ; then
		cat `dirname $0`/ipkg_de.txt > $SYNOPKG_TEMP_LOGFILE
	else
		cat `dirname $0`/ipkg_en.txt > $SYNOPKG_TEMP_LOGFILE
	fi
	exit 1
fi

if [ ! -f /usr/bin/perl ] ; then
     if [ "$SYNOPKG_DSM_LANGUAGE" = "ger" ] ; then
          cat `dirname $0`/perl_de.txt > $SYNOPKG_TEMP_LOGFILE
     else
          cat `dirname $0`/perl_en.txt > $SYNOPKG_TEMP_LOGFILE
     fi
     exit 1
fi
exit 0