Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-11-21 14:56:01 +01:00 committed by GitHub
parent 20d1e731ad
commit 3adf113d00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,10 +42,17 @@ if [ $? = 0 ]
then then
echo "" echo ""
else 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" echo " this seems to be a server, swithching to server mode"
sleep 2 sleep 2
ubuntuserver14 ubuntuserver14
fi fi
fi
export HOSTNAME export HOSTNAME
myhost=$( hostname ) myhost=$( hostname )
clear clear