feat: Remove existing TAP interface (#174)

This commit is contained in:
Kroese 2025-02-14 20:17:50 +01:00 committed by GitHub
parent 2f0bc64fd5
commit 885ca224ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -388,6 +388,11 @@ if [[ "$DEBUG" == [Yy1]* ]]; then
echo echo
fi fi
if [[ -d "/sys/class/net/$VM_NET_TAP" ]]; then
info "Lingering interface will be removed..."
ip link delete "$VM_NET_TAP" || true
fi
if [[ "$DHCP" == [Yy1]* ]]; then if [[ "$DHCP" == [Yy1]* ]]; then
checkOS checkOS