diff --git a/mm-scripts.sh b/mm-scripts.sh index 8cbe6b6..878f423 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -201,8 +201,10 @@ MMSTOP(){ #for srvc in "${SERVICES_CHECK[@]}"; do for i in "${!NM_SERVICES[@]}"; do srvc=${NM_SERVICES[$i]} - echo "stopping $srvc - ($i)" - /bin/systemctl stop ${srvc} & + if [[ ${i} != *"vpn"* ]]; then + echo "stopping $srvc - ($i)" + /bin/systemctl stop ${srvc} & + fi done checked=false until [ "${checked}" = "" ]; do