Difference between revisions of "User Scripts examples"
From Teltonika Networks Wiki
Tags: Mobile edit Mobile web edit |
Tags: Mobile edit Mobile web edit |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
#!/bin/ash | #!/bin/ash | ||
Line 12: | Line 8: | ||
echo "$HOST did not respond; trying to restart VPN" | echo "$HOST did not respond; trying to restart VPN" | ||
/usr/sbin/ipsec restart | /usr/sbin/ipsec restart | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 23:28, 12 April 2022
- !/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