Kommentare hinzugefügt
This commit is contained in:
parent
64a5ce646b
commit
7e58b5ec8c
@ -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)"
|
||||
|
Loading…
Reference in New Issue
Block a user