X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Flive-initramfs%2Fgrml-script.init-top;h=1c74bd92a9716c4ba5ee5f56649ff8bbbda40786;hb=55652b9ec39d4eb16ff2789ae67d9e4561434182;hp=a9bd2849b6db9c11120c2d32c3b23c12235ba0a8;hpb=f6f5809bd71d7b9f77a5a6edd23f353e7a25f609;p=grml-live.git diff --git a/etc/grml/fai/live-initramfs/grml-script.init-top b/etc/grml/fai/live-initramfs/grml-script.init-top index a9bd284..1c74bd9 100755 --- a/etc/grml/fai/live-initramfs/grml-script.init-top +++ b/etc/grml/fai/live-initramfs/grml-script.init-top @@ -1,5 +1,22 @@ #!/bin/sh +# prereq header {{{ +# without this header booting will fail with: +# "PANIC: Circular dependancy. Exiting." +PREREQ="" +prereqs() +{ + echo "$PREREQ" +} +case $1 in +# get pre-requisites +prereqs) + prereqs + exit 0 + ;; +esac +# }}} + # helper functions {{{ if grep -qe debug -qe verbose /proc/cmdline 2>/dev/null ; then @@ -98,6 +115,10 @@ if [ -r /etc/grml_version ] ; then GRML_VERSION="$(cat /etc/grml_version)" fi +if checkbootparam "quiet" ; then + echo -e "${CLEAR}" +fi + if [ -n "$DISTRI" ] ; then SPLASH=" ${RED} $DISTRI @@ -119,11 +140,13 @@ fi echo "" echo "${WHITE}Welcome to" echo "$SPLASH" - -echo -log_grml_begin_msg "Running $GRML_VERSION" echo +if [ -n "$GRML_VERSION" ] ; then + log_grml_begin_msg "Running $GRML_VERSION" + echo +fi + # don't output anything if running with bootsplash feature if checkbootparam "splash" ; then exec >/dev/null &1