1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update 15-openvpn

This commit is contained in:
A Holt 2018-09-05 12:07:30 -04:00 committed by GitHub
parent b0ba96f259
commit 21e1acf576
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,9 +15,9 @@ if [ "$2" = "up" ]; then
sleep 2 sleep 2
/sbin/ip route list dev "$1" | grep -q '^default' && /sbin/ip route list dev "$1" | grep -q '^default' &&
# restart the services # restart the services
systemctl -q is-enabled openvpn@xscenet.service && /usr/lib/iiab/up_wan #systemctl -q is-enabled openvpn@xscenet.service && /usr/lib/iiab/up_wan
# CONSIDER THIS INSTEAD: # EQUIVALENTLY:
# systemctl is-enabled openvpn && pgrep openvpn && systemctl start openvpn@xscenet systemctl is-enabled openvpn && pgrep openvpn && systemctl start openvpn@xscenet
# OR EQUIVALENTLY: # OR EQUIVALENTLY:
# systemctl is-enabled openvpn && systemctl is-active openvpn && systemctl start openvpn@xscenet # systemctl is-enabled openvpn && systemctl is-active openvpn && systemctl start openvpn@xscenet
fi fi