diff --git a/mm-scripts.sh b/mm-scripts.sh index 302e6a4..5cbd692 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -179,7 +179,9 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf fi fi fi - + + [ "${1}" === "start" ] && rm -f mm.vpn.fail* + OUT=$(/sbin/ip link | grep "$VPN_INTERFACE") if [ ${#OUT} != 0 ]; then if [ ${GOFORSTART} = true ] || [ "${1}" == "check" ]; then