mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
10 lines
219 B
Text
10 lines
219 B
Text
|
#!/bin/bash
|
||
|
# if the wan has recently come up, see if we need to start openvpn
|
||
|
systemctl is-enabled openvpn
|
||
|
if [ $? -eq 0 ]; then
|
||
|
pgrep openvpn
|
||
|
if [ $? -ne 0 ]; then
|
||
|
systemctl start openvpn@xscenet
|
||
|
fi
|
||
|
fi
|