From 117935d36d9d9b0916d4fc302adc8606f8beb846 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 22 Apr 2023 23:00:01 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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