Kommentare hinzugefügt

This commit is contained in:
Patrick 2018-03-05 22:17:06 +01:00
parent 64a5ce646b
commit 7e58b5ec8c
1 changed files with 9 additions and 1 deletions

View File

@ -28,7 +28,9 @@ function send_message() {
fehlermeldung="$(hostname)"
#ping -c 4 -i mullvad 8.8.8.8
########################################################
# ping-Tests
#Mullvad test
if ! ping -c 4 -I mullvad 8.8.8.8 > /dev/null 2>&1
then
@ -70,6 +72,9 @@ else
fi
########################################################
# batctl Version test
if [ ! "$(batctl -v | awk '{print $2}')" = "2013.4.0" ]
then
echo "batctl: Version falsch"
@ -91,6 +96,9 @@ else
echo "OK"
fi
########################################################
# Auswertung und Benachrichtigung
if [ "$fehler" = "1" ]
then
send_message "$(echo -e $fehlermeldung)"