#!/bin/bash # https://pastebin.com/z732VHtZ DEVICE_NAME="pvpn-ipv6leak-protection" LEAK=$(nmcli device | grep "$DEVICE_NAME") if [[ -n "$LEAK" ]]; then # echo $LEAK nmcli connection delete "$DEVICE_NAME" >> /dev/null # nmcli device fi