10 lines
208 B
Bash
10 lines
208 B
Bash
#!/bin/sh
|
|
# Remove local WireGuard interface.
|
|
set -eu
|
|
|
|
WG_IFACE=wg-dev
|
|
|
|
sudo wg-quick down ${WG_IFACE} 2>/dev/null || true
|
|
sudo rm -f /etc/wireguard/${WG_IFACE}.conf
|
|
|
|
echo "==> WireGuard ${WG_IFACE} removed"
|