#! /bin/sh

chmod 755 _slpct_instlow

uname -a | grep -i "Linux"
if [ $? != 0 ]
then
	sudo ./_slpct_instlow
else
	uname -a | grep -i "ubuntu"
	if [ $? != 0 ]
	then
		sudo ./_slpct_instlow
		sudo cp -f slpctrun1.desktop /usr/share/applications
		sudo chmod 755 /usr/share/applications/slpctrun1.desktop

	else
		sudo ./_slpct_instlow
		sudo cp -f slpctrun1.desktop /usr/share/applications
		sudo chmod 755 /usr/share/applications/slpctrun1.desktop

	fi
fi

if [ $? != 0 ]
then
	echo "impossibile proseguire nell'installazione di slpct"
	exit 1
fi

echo "Installazione di SLpct completata correttamente."
