From: Ismaƫl Bouya Date: Mon, 9 Oct 2023 15:25:24 +0000 (+0200) Subject: Add failsafe X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;p=perso%2FImmae%2FConfig%2Ftinc%2Fhosts.git Add failsafe --- diff --git a/ImmaeEu-down b/ImmaeEu-down index daee563..d983a3b 100755 --- a/ImmaeEu-down +++ b/ImmaeEu-down @@ -3,7 +3,7 @@ [ -e /tmp/tinc_$NETNAME ] && . /tmp/tinc_$NETNAME [ -e /run/tinc_$NETNAME.vars ] && . /run/tinc_$NETNAME.vars -rm -f /tmp/tinc_$NETNAME /run/tinc_$NETNAME.vars +rm -f /tmp/tinc_$NETNAME /run/tinc_$NETNAME.vars || true [ -n "$GWIP" ] && ip -6 route del default via $GWIP table 655 for MYIP in $MYIPS; do ip -6 addr del $MYIP/96 dev $INTERFACE