8 lines
158 B
Bash
8 lines
158 B
Bash
#!/bin/bash
|
|
|
|
if [ ! -e /tmp/.ynh-vpnclient-stopped ] && ! ip route get 1.2.3.4 | grep -q tun0; then
|
|
systemctl restart ynh-vpnclient &> /dev/null
|
|
fi
|
|
|
|
exit 0
|