export LC_ALL=de_DE.utf8
uname -a >"${MOTD}"
-if [ -f /etc/gentoo-release ] ; then
+if [[ -f /etc/gentoo-release ]] ; then
cat /etc/gentoo-release >>"${MOTD}"
+elif [[ -x /usr/bin/lsb_release ]] ; then
+ /usr/bin/lsb_release -d | sed -e 's/^[ ]*Description[ ]*:[ ]*//' >> "${MOTD}"
fi
-if [ -f /etc/motd.tail ] ; then
+if [[ -f /etc/motd.tail ]] ; then
cat /etc/motd.tail >>"${MOTD}"
fi
-if [ -x /usr/bin/fortune ] ; then
+if [[ -x /usr/bin/fortune ]] ; then
echo >>"${MOTD}"
/usr/bin/fortune de >>"${MOTD}"
+elif [[ -x /usr/games/fortune ]] ; then
+ echo >>"${MOTD}"
+ /usr/games/fortune de >>"${MOTD}"
fi
-if [ -x /usr/bin/ddate ] ; then
+if [[ -x /usr/bin/ddate ]] ; then
echo >>"${MOTD}"
/usr/bin/ddate >>"${MOTD}"
fi