mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Update ADconnection.sh
This commit is contained in:
parent
4d17e51c07
commit
3bb73cd00b
@ -224,25 +224,23 @@ linuxclient(){
|
|||||||
desktop=$(sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d '-' -f1 | grep -i desktop)
|
desktop=$(sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d '-' -f1 | grep -i desktop)
|
||||||
if [ $? = 0 ]
|
if [ $? = 0 ]
|
||||||
then
|
then
|
||||||
echo ""
|
rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
|
||||||
else
|
if [ "$rasp" = "Raspbian" ]
|
||||||
rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
|
then
|
||||||
if [ "$rasp" = "Raspbian" ]
|
echo "${INTRO_TEXT}"Detecting Raspberry Pi"${END}"
|
||||||
then
|
raspberry
|
||||||
echo "${INTRO_TEXT}"Detecting Raspberry Pi"${END}"
|
else
|
||||||
raspberry
|
kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
|
||||||
else
|
if [ "$kalilinux" = "Kali" ]
|
||||||
kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
|
then
|
||||||
if [ "$kalilinux" = "Kali" ]
|
echo "${INTRO_TEXT}"Detecting Kali linux"${END}"
|
||||||
then
|
kalijoin
|
||||||
echo "${INTRO_TEXT}"Detecting Kali linux"${END}"
|
else
|
||||||
kalijoin
|
echo " this seems to be a server, swithching to server mode"
|
||||||
else
|
ubuntuserver14
|
||||||
echo " this seems to be a server, swithching to server mode"
|
|
||||||
ubuntuserver14
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
export HOSTNAME
|
export HOSTNAME
|
||||||
myhost=$( hostname )
|
myhost=$( hostname )
|
||||||
clear
|
clear
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user