. /etc/init.d/tc-functions

if [ "`getBuild`" == "x86" ]; then
 LIBDIR="i386-linux-gnu"
elif [ "`getBuild`" == "armv7" ]; then
 LIBDIR=arm-linux-gnueabihf
elif [ "`getBuild`" == "x86_64" ]; then
 LIBDIR=x86_64-linux-gnu
fi

if [ -f /tmp/tcloop/APPNAME/usr/lib/"$LIBDIR"/qt4/bin/qtconfig ]; then
	rm /usr/lib/"$LIBDIR"/qt4/bin/qtconfig
	cp /tmp/tcloop/APPNAME/usr/lib/"$LIBDIR"/qt4/bin/qtconfig /usr/lib/"$LIBDIR"/qt4/bin/
fi