mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-04-05 03:43:30 +03:00
Remove interface when uninstall
Issue Proposal for small improvement #361
This commit is contained in:
parent
29d43c61f2
commit
16fd83e1ec
1 changed files with 3 additions and 0 deletions
|
@ -396,6 +396,9 @@ function uninstallWg() {
|
|||
# Reload sysctl
|
||||
sysctl --system
|
||||
|
||||
# delete interface
|
||||
ip link delete dev ${SERVER_WG_NIC}
|
||||
|
||||
# Check if WireGuard is running
|
||||
systemctl is-active --quiet "wg-quick@${SERVER_WG_NIC}"
|
||||
WG_RUNNING=$?
|
||||
|
|
Loading…
Add table
Reference in a new issue