Update mm-scripts.sh

This commit is contained in:
2023-04-22 23:00:01 -05:00
parent c6aa673627
commit 117935d36d

View File

@@ -180,6 +180,8 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
fi fi
fi fi
[ "${1}" === "start" ] && rm -f mm.vpn.fail*
OUT=$(/sbin/ip link | grep "$VPN_INTERFACE") OUT=$(/sbin/ip link | grep "$VPN_INTERFACE")
if [ ${#OUT} != 0 ]; then if [ ${#OUT} != 0 ]; then
if [ ${GOFORSTART} = true ] || [ "${1}" == "check" ]; then if [ ${GOFORSTART} = true ] || [ "${1}" == "check" ]; then