From 74ccd1023203142a623c7d553949285b86d2ca9c Mon Sep 17 00:00:00 2001 From: fbrehm Date: Thu, 23 Feb 2012 09:24:14 +0100 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- .etckeeper | 6 ++++++ motd | 15 +++++++++++++++ motd.tail | 6 ++++++ update-motd.d/00-header | 37 +++++++++++++++++++++++++++++++++++++ update-motd.d/20-fortune | 12 ++++++++++++ update-motd.d/99-footer | 30 ++++++++++++++++++++++++++++++ 6 files changed, 106 insertions(+) create mode 100644 motd create mode 100644 motd.tail create mode 100755 update-motd.d/00-header create mode 100755 update-motd.d/20-fortune create mode 100755 update-motd.d/99-footer diff --git a/.etckeeper b/.etckeeper index 2c0981b..75e30ab 100755 --- a/.etckeeper +++ b/.etckeeper @@ -1053,6 +1053,8 @@ maybe chmod 0644 './modprobe.d/i386.conf' maybe chmod 0644 './modprobe.d/pnp-aliases.conf' maybe chmod 0644 './modprobe.d/ppp.conf' maybe chmod 0644 './modprobe.d/usb-load-ehci-first.conf' +maybe chmod 0644 './motd' +maybe chmod 0644 './motd.tail' maybe chmod 0644 './mtab' maybe chmod 0755 './mtools' maybe chmod 0644 './mtools/mtools.conf' @@ -1609,6 +1611,10 @@ maybe chmod 0755 './unixODBC' maybe chmod 0755 './unixODBC/ODBCDataSources' maybe chmod 0644 './unixODBC/odbc.ini' maybe chmod 0644 './unixODBC/odbcinst.ini' +maybe chmod 0755 './update-motd.d' +maybe chmod 0755 './update-motd.d/00-header' +maybe chmod 0755 './update-motd.d/20-fortune' +maybe chmod 0755 './update-motd.d/99-footer' maybe chmod 0644 './updatedb.conf' maybe chmod 0755 './vbox' maybe chmod 0644 './vbox/vbox.cfg' diff --git a/motd b/motd new file mode 100644 index 0000000..c70a0f5 --- /dev/null +++ b/motd @@ -0,0 +1,15 @@ +Linux samara 3.2.1-gentoo-r2 #1 SMP Thu Feb 16 18:53:53 CET 2012 x86_64 AMD Phenom(tm) II X6 1075T Processor AuthenticAMD GNU/Linux +Gentoo Base System release 2.0.3 + ____ +/ ___| __ _ _ __ ___ __ _ _ __ __ _ +\___ \ / _` | '_ ` _ \ / _` | '__/ _` | + ___) | (_| | | | | | | (_| | | | (_| | +|____/ \__,_|_| |_| |_|\__,_|_| \__,_| + + +Mißachtung für deine Mitmenschen hindert dich nicht, bei fortwährender +Selbstachtung nach ihrer Achtung zu streben. + -- Dag Hammarskjöld (Zeichen am Weg) + +Today is Prickle-Prickle, the 54th day of Chaos in the YOLD 3178 + diff --git a/motd.tail b/motd.tail new file mode 100644 index 0000000..c2a3721 --- /dev/null +++ b/motd.tail @@ -0,0 +1,6 @@ + ____ +/ ___| __ _ _ __ ___ __ _ _ __ __ _ +\___ \ / _` | '_ ` _ \ / _` | '__/ _` | + ___) | (_| | | | | | | (_| | | | (_| | +|____/ \__,_|_| |_| |_|\__,_|_| \__,_| + diff --git a/update-motd.d/00-header b/update-motd.d/00-header new file mode 100755 index 0000000..b5a8617 --- /dev/null +++ b/update-motd.d/00-header @@ -0,0 +1,37 @@ +#!/bin/sh +# +# 00-header - create the header of the MOTD +# Copyright (C) 2009-2010 Canonical Ltd. +# +# Authors: Dustin Kirkland +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +[ -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 + +echo " + ____ +/ ___| __ _ _ __ ___ __ _ _ __ __ _ +\___ \ / _\` | '_ \` _ \ / _\` | '__/ _\` | + ___) | (_| | | | | | | (_| | | | (_| | +|____/ \__,_|_| |_| |_|\__,_|_| \__,_| +" + +printf "Welcome to %s (%s %s %s)\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" "$(uname -r)" "$(uname -m)" diff --git a/update-motd.d/20-fortune b/update-motd.d/20-fortune new file mode 100755 index 0000000..0f99627 --- /dev/null +++ b/update-motd.d/20-fortune @@ -0,0 +1,12 @@ +#!/bin/bash + +export LC_ALL=de_DE.utf8 + +if [ -x /usr/bin/fortune ] ; then + echo + /usr/bin/fortune de + echo + /usr/bin/ddate +fi + +# vim: ts=4 expandtab diff --git a/update-motd.d/99-footer b/update-motd.d/99-footer new file mode 100755 index 0000000..4b42bd5 --- /dev/null +++ b/update-motd.d/99-footer @@ -0,0 +1,30 @@ +#!/bin/sh +# +# 99-footer - write the admin's footer to the MOTD +# Copyright (C) 2009-2010 Canonical Ltd. +# +# Authors: Dustin Kirkland +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + +# 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 -- 2.39.5