„VPNreconnect.sh“ ändern

This commit is contained in:
Stephan 2018-10-31 15:53:12 +00:00
parent 98e1b846de
commit 0eb3f4fedd
1 changed files with 4 additions and 4 deletions

View File

@ -24,16 +24,16 @@ if [ -z $ConfID ]; then
ConfID=`get_key_value /usr/syno/etc/synovpnclient/vpnc_last_connect conf_id`
fi
#remote_IP="10.8.0.1"
#remote_IP="10.8.0.1" # fest eingestellte IP
# Aufruf mit Prüfung:
remote_IP=$1
remote_IP=$1 # als Parameter übergebene IP
df | grep "${remote_IP}" > /dev/null
if [ $? -eq 0 ]; then
echo "==> OK"
echo "==> OK - Verbindung ist zu ${remote_IP} erfolgreich aufgebaut"
else
echo "==> Verbindung wird neu hergestellt:"
echo "==> Verbindung wird zu ${remote_IP} neu hergestellt:"
VPNreconnect
fi