Skip to content

Instantly share code, notes, and snippets.

View Sabrimjd's full-sized avatar
🏠
Working from home

Sabri MJAHED Sabrimjd

🏠
Working from home
View GitHub Profile
@Sabrimjd
Sabrimjd / 10-script
Created March 9, 2021 14:00
Dynamic motd - requirements : figlet
#!/bin/sh
[ -r /etc/lsb-release ] && . /etc/lsb-release
if [ -z "$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ];
then
# Fall back to using the very slow lsb_release utility
DISTRIB_DESCRIPTION=$(lsb_release -s -d)
fi
#figlet $(hostname)