Output grml version in grml's live-initramfs script
authorMichael Prokop <devnull@localhost>
Sun, 20 Jul 2008 18:53:48 +0000 (20:53 +0200)
committerMichael Prokop <devnull@localhost>
Sun, 20 Jul 2008 18:53:48 +0000 (20:53 +0200)
etc/grml/fai/live-initramfs/grml-script.init-top

index 5ed49b0..40ab55d 100755 (executable)
@@ -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