feat: Remove existing TAP interface

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

View file

@ -388,6 +388,11 @@ if [[ "$DEBUG" == [Yy1]* ]]; then
echo
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
checkOS