add motd files
This commit is contained in:
parent
a85249e473
commit
f69e8dc834
4
etc/update-motd.d/10-figlet
Executable file
4
etc/update-motd.d/10-figlet
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo
|
||||||
|
figlet -ct -f banner "welcome mr.kan"
|
||||||
|
echo
|
||||||
9
etc/update-motd.d/20-service-status.example
Executable file
9
etc/update-motd.d/20-service-status.example
Executable 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
|
||||||
Loading…
x
Reference in New Issue
Block a user