From 20553f6688821de1ad529e651d2423628f06a6ac Mon Sep 17 00:00:00 2001 From: PierreGode Date: Mon, 20 Aug 2018 15:00:13 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ADconnection.sh b/ADconnection.sh index 3b007ed..d7b305b 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -416,6 +416,7 @@ TheOS=$( hostnamectl | grep -i Operating | awk '{print $3}' ) < /dev/null > /dev MintOS=$( hostnamectl | grep -i Operating | awk '{print $4}' ) < /dev/null > /dev/null 2>&1 rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) < /dev/null > /dev/null 2>&1 kalilinux=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) < /dev/null > /dev/null 2>&1 +Arm=$( sudo hostnamectl | grep Architecture | awk '{print $2}' ) #### OS detection #### if [ "$TheOS" = "Fedora" ] < /dev/null > /dev/null 2>&1 @@ -438,12 +439,21 @@ then echo "Ubuntu detected" echo "" echo "Checking if it is a Desktop or server" + desktop=$( sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d '-' -f1 | grep -i desktop | head -1 | awk '{print$1}' ) < /dev/null > /dev/null 2>&1 if [ "$desktop" = "desktop" ] < /dev/null > /dev/null 2>&1 then echo "Ubuntu Desktop detected" +#UbuntU +if [ "$Arm" = "arm" ] +then +sudo sh -c "echo 'greeter-show-manual-login=true' | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu-mate.conf" +sudo sh -c "echo 'allow-guest=false' | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu-mate.conf" UbuntU else +UbuntU +fi +else echo " this seems to be a server, swithching to server mode" ubuntuserver14 fi