ynh-vpnclient-checker.sh 158 B

1234567
  1. #!/bin/bash
  2. if [ ! -e /tmp/.ynh-vpnclient-stopped ] && ! ip route get 1.2.3.4 | grep -q tun0; then
  3. systemctl restart ynh-vpnclient &> /dev/null
  4. fi
  5. exit 0