From a51de0138db6b2359cca4813eb56a0812342a9e2 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 27 Oct 2016 11:42:47 +0200 Subject: [PATCH] Update for Debian Stretch --- generate-motd.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generate-motd.sh b/generate-motd.sh index 6e75792..a378805 100755 --- a/generate-motd.sh +++ b/generate-motd.sh @@ -9,6 +9,11 @@ cp /dev/null "${MOTD}" DISTRI_ID=$( lsb_release -i -s | tr '[:upper:]' '[:lower:]' ) if [[ "${DISTRI_ID}" != 'debian' ]] ; 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