From: Frank Brehm Date: Wed, 2 Nov 2016 08:45:34 +0000 (+0100) Subject: Repairing generate-motd.sh X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=244c5f77e7b3d06db0172010bfb1ab42206a19ab;p=scripts%2Froot-bin.git Repairing generate-motd.sh --- diff --git a/generate-motd.sh b/generate-motd.sh index a378805..252e997 100755 --- a/generate-motd.sh +++ b/generate-motd.sh @@ -6,14 +6,8 @@ echo "Generating '${MOTD}' ..." export LC_ALL=de_DE.utf8 cp /dev/null "${MOTD}" -DISTRI_ID=$( lsb_release -i -s | tr '[:upper:]' '[:lower:]' ) -if [[ "${DISTRI_ID}" != 'debian' ]] ; then +if [[ ! -e /run/motd.dynamic ]] ; then uname -a >>"${MOTD}" -else - CODENAME=$( lsb_release -c -s | tr '[:upper:]' '[:lower:]' ) - if [[ "${CODENAME}" == "stretch" ]] ; then - uname -a >>"${MOTD}" - fi fi if [[ -f /etc/gentoo-release ]] ; then cat /etc/gentoo-release >>"${MOTD}"