Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

Output grml version in grml's live-initramfs script
authorMichael Prokop
Sun Jul 20 20:53:48 2008 +0200 (4 months ago)
changeset 535f4a162f1484c
manifestf4a162f1484c
parent 5345e5401b0ee07
child 536bcb51a7523df
Output grml version in grml's live-initramfs script
etc/grml/fai/live-initramfs/grml-script.init-top
--- a/etc/grml/fai/live-initramfs/grml-script.init-top Sun Jul 20 14:50:02 2008 +0200
+++ b/etc/grml/fai/live-initramfs/grml-script.init-top Sun Jul 20 20:53:48 2008 +0200
@@ -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 @@ SPLASH="
${RED} | |_| | _ <| | | | |___
${RED} \____|_| \_\_| |_|_____|
-${WHITE}grml.org - Linux for sysadmins and texttool users.
+${WHITE}grml.org $GRML_VERSION- Linux for sysadmins and texttool users.
${NORMAL}"
fi