add motd files

This commit is contained in:
thek4n 2024-10-18 10:37:55 +03:00
parent a85249e473
commit f69e8dc834
2 changed files with 13 additions and 0 deletions

4
etc/update-motd.d/10-figlet Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
echo
figlet -ct -f banner "welcome mr.kan"
echo

View File

@ -0,0 +1,9 @@
#!/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