From 3adf113d00f986ce8836d2aa6ff0cbcfe2fa560b Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Tue, 21 Nov 2017 14:56:01 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ADconnection.sh b/ADconnection.sh index 00fcd80..884ed78 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -42,10 +42,17 @@ if [ $? = 0 ] then echo "" else +rasp=$( lsb_release -a | grep -i Distributor | awk '{print $3}' ) +if [ "$rasp" -eq Raspbian ] +then +echo "this seems to be a raspberry Pi" +raspberry +else echo " this seems to be a server, swithching to server mode" sleep 2 ubuntuserver14 fi +fi export HOSTNAME myhost=$( hostname ) clear