Advertisement
Guest User

Untitled

a guest
Apr 12th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. vpnstate="$(/usr/syno/bin/synovpnc get_conn)"
  4.  
  5. if [[ $vpnstate =~ "No connection!!" ]]; then
  6.     /usr/syno/bin/synonotify VpncReconnectFail "{\"%VPN_CLIENT%\": \"VPN\"}"
  7. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement