Update mm-scripts.sh
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user