User Scripts examples

From Teltonika Networks Wiki


  1. !/bin/ash

HOST=10.10.10.10 if ping -c5 $HOST > /dev/null; then

 echo "$HOST responded; VPN is up!"

else

 echo "$HOST did not respond; trying to restart VPN"
 /usr/sbin/ipsec restart