#! /bin/sh

TYPE=c2

finalize() {
	true
}

if [ "$CARD" != "$TYPE" ]; then
	echo -e "\a\nExpect controller name '$TYPE' as first parameter!\n"
	ok=0
else
	if [ "$TPROTO" != "dss1" -o "$TFILE" != "dss1" ]; then
		echo -e "\a\nOnly protocoll DSS1 is supported!\n"
		ok=0
	else
		cline1="c2              %F  %P    -       -       -       -"
		cline2="c2              -       %P    -       -       -       -"
		clinen=1
		clinec=""
		kick=1
		ok=1

		if [ "$TDDIN" == "" ]; then
			TDDIN=2
		fi
 
		LFILE=$TYPE.bin
		LPROTO=DSS1
		HAVE_DDI=1
	fi
fi

echo -n "* Parameters: $TPROTO/$TFILE - " >> install.log
echo -n " protocol $LPROTO" >> install.log
echo " firmware $LFILE" >> install.log

