Update mm-scripts.sh

This commit is contained in:
2022-12-31 16:25:51 -06:00
parent c8bc1aeb4d
commit 9efe90d2e1

View File

@@ -34,6 +34,13 @@ unset IFS
MMSTART(){
[ $VERBOSE = true ] && chktmstart=`date +%s`
if [ "${1}" = "start" ] || [ "${1}" = "" ]; then
GOFORSTART=true;
elif [ "${1}" = "check" ] && [ "$(systemctl is-active openvpn)" != "active" ]; then
GOFORSTART=true;
else
GOFORSTART=false;
fi
if [ ${GOFORSTART} = true ]; then
mmsv='Starting'
echo
OUT=$(ip link | grep "$VPN_INTERFACE")