Done! > - if ! ip link show dev "${iface}" >/dev/null 2>&1; then > - ip link add dev "${iface}" type wireguard > - else > - ip address flush dev "${iface}" > - ip route flush dev "${iface}" > - fi > + ip link del dev "${iface}" 2>/dev/null > + ip link add dev "${iface}" type wireguard