From: Michael Prokop Date: Sun, 20 Jul 2008 18:53:48 +0000 (+0200) Subject: Output grml version in grml's live-initramfs script X-Git-Tag: 0.9.0~17 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=60e413cbe79220b140d0c96d5cc487aa6c87aaa6 Output grml version in grml's live-initramfs script --- diff --git a/etc/grml/fai/live-initramfs/grml-script.init-top b/etc/grml/fai/live-initramfs/grml-script.init-top index 5ed49b0..40ab55d 100755 --- a/etc/grml/fai/live-initramfs/grml-script.init-top +++ b/etc/grml/fai/live-initramfs/grml-script.init-top @@ -93,6 +93,11 @@ FAILED=" ${NORMAL}[${RED}fail${NORMAL}]" # welcome splash {{{ DISTRI="$(getbootparam 'distri' 2>/dev/null)" + +if [ -r /etc/grml_version ] ; then + GRML_VERSION="[$(cat /etc/grml_version)] " +fi + if [ -n "$DISTRI" ] ; then SPLASH=" ${RED} $DISTRI @@ -108,7 +113,7 @@ ${RED} | | _| |_) | |\/| | | ${RED} | |_| | _ <| | | | |___ ${RED} \____|_| \_\_| |_|_____| -${WHITE}grml.org - Linux for sysadmins and texttool users. +${WHITE}grml.org $GRML_VERSION- Linux for sysadmins and texttool users. ${NORMAL}" fi