9 lines
279 B
Bash
Executable File
9 lines
279 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo wg0 status: $(systemctl is-active wg-quick@wg0.service)
|
|
|
|
if ! systemctl is-active wg-quick@wg0.service &>/dev/null; then
|
|
echo 'Executing this command may fix wireguard: "sudo apt update && sudo apt install linux-headers-$(uname -r) && sudo reboot"'
|
|
fi
|
|
|
|
echo |