add dynamic motd generator
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/genlink@2634 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
4
app-admin/motd-base/files/motd.d/00-header
Executable file
4
app-admin/motd-base/files/motd.d/00-header
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
uname -a
|
||||
printf "%s\n" "$(lsb_release -s -d)"
|
||||
5
app-admin/motd-base/files/motd.d/10-help-text
Executable file
5
app-admin/motd-base/files/motd.d/10-help-text
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo
|
||||
echo "Welcome to Gentoo Linux!"
|
||||
echo " * Documentation: http://www.gentoo.org"
|
||||
6
app-admin/motd-base/files/motd.d/20-linux-logo
Executable file
6
app-admin/motd-base/files/motd.d/20-linux-logo
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# To add dynamic information, add a numbered
|
||||
# script to /etc/update-motd.d/
|
||||
|
||||
[ -f /usr/bin/linux_logo ] && /usr/bin/linux_logo -f -u -L gentoo-alt || true
|
||||
10
app-admin/motd-base/files/motd.d/99-footer
Executable file
10
app-admin/motd-base/files/motd.d/99-footer
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# motd.tail is reserved for the admin to append static
|
||||
# trailing information to a dynamically generated
|
||||
# /etc/motd.
|
||||
#
|
||||
# To add dynamic information, add a numbered
|
||||
# script to /etc/update-motd.d/
|
||||
|
||||
[ -f /etc/motd.tail ] && cat /etc/motd.tail || true
|
||||
Reference in New Issue
Block a user