From 3bb73cd00bfc294e8e4c5fde0b0a459031c57cca Mon Sep 17 00:00:00 2001 From: PierreGode Date: Tue, 27 Mar 2018 08:42:11 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index 957a891..ee80fbd 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -224,25 +224,23 @@ linuxclient(){ desktop=$(sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d '-' -f1 | grep -i desktop) if [ $? = 0 ] then -echo "" -else -rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) -if [ "$rasp" = "Raspbian" ] -then -echo "${INTRO_TEXT}"Detecting Raspberry Pi"${END}" -raspberry -else -kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) -if [ "$kalilinux" = "Kali" ] -then -echo "${INTRO_TEXT}"Detecting Kali linux"${END}" -kalijoin -else -echo " this seems to be a server, swithching to server mode" -ubuntuserver14 -fi -fi + rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) + if [ "$rasp" = "Raspbian" ] + then + echo "${INTRO_TEXT}"Detecting Raspberry Pi"${END}" + raspberry + else + kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) + if [ "$kalilinux" = "Kali" ] + then + echo "${INTRO_TEXT}"Detecting Kali linux"${END}" + kalijoin + else + echo " this seems to be a server, swithching to server mode" + ubuntuserver14 fi + fi + fi export HOSTNAME myhost=$( hostname ) clear