1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Update up_wan

This commit is contained in:
A Holt 2018-08-15 21:30:36 -04:00 committed by GitHub
parent 50f98aa9a7
commit 9621cf6c4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,8 @@
#!/bin/bash
# if the wan has recently come up, see if we need to start openvpn
# Not really used as of August 2018, but perhaps can be revived for CentOS etc
# If the wan has recently come up, see if we need to start openvpn
systemctl is-enabled openvpn
if [ $? -eq 0 ]; then
pgrep openvpn