From 0cc7248aececac381f821fd40ed508b79fd1051a Mon Sep 17 00:00:00 2001 From: PierreGode Date: Fri, 10 Aug 2018 08:49:01 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index ba0109b..3516ff8 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -412,39 +412,41 @@ desktop=$( sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d if [ "$TheOS" = "Fedora" ] < /dev/null > /dev/null 2>&1 then echo "Fedora detected" -echo Fedora_fn +Fedora_fn else if [ "$TheOS" = "CentOS" ] < /dev/null > /dev/null 2>&1 then echo "Cent OS detected" -echo CentOS +CentOS else if [ "$TheOS" = "Debian" ] < /dev/null > /dev/null 2>&1 then echo "Debian detected" -echo debianclient +debianclient else if [ $"TheOS" = "Ubuntu" ] < /dev/null > /dev/null 2>&1 then if [ "$desktop" = "desktop" ] < /dev/null > /dev/null 2>&1 then +echo "Ubuntu detected" echo "" else echo " this seems to be a server, swithching to server mode" -echo ubuntuserver14 +ubuntuserver14 fi else if [ "$rasp" = "Raspbian" ] < /dev/null > /dev/null 2>&1 then echo "${INTRO_TEXT}"Detecting Raspberry Pi"${END}" -echo raspberry +raspberry else if [ "$kalilinux" = "Kali" ] < /dev/null > /dev/null 2>&1 then echo "${INTRO_TEXT}"Detecting Kali linux"${END}" -echo kalijoin + kalijoin else echo "No compatible System found" +exit fi fi fi