# !/bin/bash
# Arquivo de configuração WPS_LPR


mkdir -p /instalacoes
cd /instalacoes
Dist_Linux="`cat /etc/os-release | grep 'NAME="' | grep -v "PRETTY" | grep -v "CPE"`"
if echo $Dist_Linux | egrep "Ubuntu" ;
	then
		echo -e " \033[0;36m Distro Linux - Ubuntu \033[0m"
		wget "https://drive.google.com/uc?export=download&id=18yJF1FL2KXairznM6GbTif3WjowomwDq&confirm=yes" -O /instalacoes/Install_WPS_LPR_Ubuntu.sh
		chmod +x /instalacoes/Install_WPS_LPR_Ubuntu.sh
		/instalacoes/Install_WPS_LPR_Ubuntu.sh
elif  echo $Dist_Linux | egrep "CentOS" ;
	then
		echo -e " \033[0;36m Distro Linux - CentOS \033[0m"
		wget "https://drive.google.com/uc?export=download&id=1AOMDiYjYnZkC7rTKcO--wf4LpYEuy9x3&confirm=yes" -O /instalacoes/Install_WPS_LPR_C7.sh
		chmod +x /instalacoes/Install_WPS_LPR_C7.sh
		/instalacoes/Install_WPS_LPR_C7.sh
		
else
		echo -e " \033[0;36m Distro Linux - Desconhecida \033[0m"
fi
