mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-06-01 03:00:47 +00:00
Remove interface when uninstall
Issue Proposal for small improvement #361
This commit is contained in:
parent
29d43c61f2
commit
16fd83e1ec
|
@ -396,6 +396,9 @@ function uninstallWg() {
|
||||||
# Reload sysctl
|
# Reload sysctl
|
||||||
sysctl --system
|
sysctl --system
|
||||||
|
|
||||||
|
# delete interface
|
||||||
|
ip link delete dev ${SERVER_WG_NIC}
|
||||||
|
|
||||||
# Check if WireGuard is running
|
# Check if WireGuard is running
|
||||||
systemctl is-active --quiet "wg-quick@${SERVER_WG_NIC}"
|
systemctl is-active --quiet "wg-quick@${SERVER_WG_NIC}"
|
||||||
WG_RUNNING=$?
|
WG_RUNNING=$?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user