Kommentare hinzugefügt
This commit is contained in:
parent
64a5ce646b
commit
7e58b5ec8c
@ -28,7 +28,9 @@ function send_message() {
|
|||||||
|
|
||||||
fehlermeldung="$(hostname)"
|
fehlermeldung="$(hostname)"
|
||||||
|
|
||||||
#ping -c 4 -i mullvad 8.8.8.8
|
########################################################
|
||||||
|
# ping-Tests
|
||||||
|
|
||||||
#Mullvad test
|
#Mullvad test
|
||||||
if ! ping -c 4 -I mullvad 8.8.8.8 > /dev/null 2>&1
|
if ! ping -c 4 -I mullvad 8.8.8.8 > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
@ -70,6 +72,9 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
########################################################
|
||||||
|
# batctl Version test
|
||||||
|
|
||||||
if [ ! "$(batctl -v | awk '{print $2}')" = "2013.4.0" ]
|
if [ ! "$(batctl -v | awk '{print $2}')" = "2013.4.0" ]
|
||||||
then
|
then
|
||||||
echo "batctl: Version falsch"
|
echo "batctl: Version falsch"
|
||||||
@ -91,6 +96,9 @@ else
|
|||||||
echo "OK"
|
echo "OK"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
########################################################
|
||||||
|
# Auswertung und Benachrichtigung
|
||||||
|
|
||||||
if [ "$fehler" = "1" ]
|
if [ "$fehler" = "1" ]
|
||||||
then
|
then
|
||||||
send_message "$(echo -e $fehlermeldung)"
|
send_message "$(echo -e $fehlermeldung)"
|
||||||
|
Loading…
Reference in New Issue
Block a user