From 244c5f77e7b3d06db0172010bfb1ab42206a19ab Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 2 Nov 2016 09:45:34 +0100 Subject: [PATCH] Repairing generate-motd.sh --- generate-motd.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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}" -- 2.39.5