feat: Remove existing TAP interface (#174)
This commit is contained in:
parent
2f0bc64fd5
commit
885ca224ff
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue