From f40eddd8c8fb99dee0ea6adfd588e792907d2025 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Mon, 20 Aug 2018 12:36:30 +0000 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ADconnection.sh b/ADconnection.sh index 3b007ed..2bed627 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -442,8 +442,18 @@ desktop=$( sudo apt list --installed | grep -i desktop | grep -i ubuntu | cut -d if [ "$desktop" = "desktop" ] < /dev/null > /dev/null 2>&1 then echo "Ubuntu Desktop detected" +Arm=$( sudo hostnamectl | grep Architecture | awk '{print $2}' ) +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 +if [ +else echo " this seems to be a server, swithching to server mode" ubuntuserver14 fi