User Scripts examples
Revision as of 22:28, 12 April 2022 by 78.63.249.229 (talk)
- !/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