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:
geos_one
2010-10-31 13:20:29 +00:00
parent b2304cadfc
commit 9bae6d0d35
11 changed files with 114 additions and 13 deletions

View File

@@ -0,0 +1,5 @@
AUX motd.d/00-header 57 RMD160 9bd1766403b866cd4beb0158d1fdd00bc99f3aaf SHA1 bc1b6a5403f9b6e331c660bde88440505328b005 SHA256 72e9c56912bd112a3ec63db880bf2908753df5ecbe06eee4e98cfd11a1f2d6da
AUX motd.d/10-help-text 96 RMD160 e72204b9666f1cc317b8e9e7fae833d2e97e27ca SHA1 305fdc18cf3e79b1ed80c2ba6db1cc2791457e73 SHA256 0b35ea7ee40473d96bf9243a96687e10cd57bcd53c7d70649b4aa987b7a22fd7
AUX motd.d/20-linux-logo 167 RMD160 174611c507cb206397c31819637d2e11e36bdcf3 SHA1 89771ebbb42d64ab0fcc8bc31a0c4336475afce1 SHA256 85ca75de7175589767e19306d9b1a2326448a1eaa3e575394d9e0d5f31a9a6bf
AUX motd.d/99-footer 261 RMD160 bc079cb699f07e1be6c3272647ef4e631f4b11d0 SHA1 9872e8f9eb8f80cd5e7e262e8d8f8074110dcf70 SHA256 38c64225ecb7486461ce84199f120d8b13e7f13764df430c3cc10a9695023ee6
EBUILD motd-base-1.ebuild 440 RMD160 9a753c5fd13b2119d24556a209447287bb0f5f1c SHA1 0e63609a5900b9bd86b839046122f8fa856d0488 SHA256 1ec5ed3543f58f2e93ed90226c0a7095fff682501fcc0a0a43641142f1f6b57e

View File

@@ -0,0 +1,4 @@
#!/bin/sh
uname -a
printf "%s\n" "$(lsb_release -s -d)"

View File

@@ -0,0 +1,5 @@
#!/bin/sh
echo
echo "Welcome to Gentoo Linux!"
echo " * Documentation: http://www.gentoo.org"

View 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

View 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

View File

@@ -0,0 +1,23 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="Base Motd Files for gentoo"
HOMEPAGE="http://linamh.disconnected-by-peer.at"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
DEPEND=""
RDEPEND="app-admin/update-motd
app-misc/linux-logo
sys-apps/lsb-release"
src_install() {
insinto /etc/update-motd.d
doins "${FILESDIR}"/motd.d/*
}