--- /dev/null
+#!/bin/bash
+
+MOTD=/etc/motd.1
+
+echo "Generating '${MOTD}' ..."
+export LC_ALL=de_DE.utf8
+
+uname -a >"${MOTD}"
+if [ -f /etc/gentoo-release ] ; then
+ cat /etc/gentoo-release >>"${MOTD}"
+fi
+if [ -f /etc/motd.tail ] ; then
+ cat /etc/motd.tail >>"${MOTD}"
+fi
+
+if [ -x /usr/bin/fortune ] ; then
+ echo >>"${MOTD}"
+ /usr/bin/fortune de >>"${MOTD}"
+fi
+
+if [ -x /usr/bin/ddate ] ; then
+ echo >>"${MOTD}"
+ /usr/bin/ddate >>"${MOTD}"
+fi
+
+echo >>"${MOTD}"
+
+# vim: ts=4 expandtab