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