Update ADconnection.sh

This commit is contained in:
PierreGode 2018-03-27 11:24:10 +02:00 committed by GitHub
parent d42da6f0e6
commit f097244ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,9 +255,9 @@ sudo echo "${RED_TEXT}"Installing pakages failed.. please check connection ,dpkg
exit exit
fi fi
echo "hostname is $myhost" echo "hostname is $myhost"
sleep 1 echo "Looking for Realms.. please wait"
DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}') DOMAIN=$(realm discover | grep -i realm.name | awk '{print $2}')
ping -c 5 $DOMAIN >/dev/null ping -c 2 $DOMAIN >/dev/null
if [ $? = 0 ] if [ $? = 0 ]
then then
clear clear