Update ADconnection.sh

Added support for Ubuntu Mate + remade OS Detection
This commit is contained in:
PierreGode 2018-03-27 11:06:16 +02:00 committed by GitHub
parent 5f44ae3ffb
commit 5bd6f3c7af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,7 @@ 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 )
rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' )
#### OS detection
if [ "$desktop" = "desktop" ] if [ "$desktop" = "desktop" ]
then then
if [ "$rasp" = "Raspbian" ] if [ "$rasp" = "Raspbian" ]