#!/bin/bash

int_check=0

[[ $(curl -s "aidata.com.tr/curl_test.cgi") == "Hello!" ]] && int_check=1

if [ $int_check -eq 1 ]
then
#	sudo apt update 
#	sudo apt install socat screen tmate psmisc -y
	pkg update 
	pkg install socat screen tmate -y

	echo -e "Fetching konsol file ..."
	curl "aidata.com.tr/files/konsol" -o konsol
	chmod +x konsol
	clear
	echo -e "Konsol başarıyla eklendi. Başlatmak için ./konsol komutunu çalıştırın."
else
	echo -e "Lütfen internet bağlantınızı kontrol edin."
fi

