#!/bin/sh
+#
+# This file was deployed via grml-live's
+# ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/42-branding script, using
+# ${GRML_FAI_CONFIG}/config/files/usr/share/initramfs-tools/scripts/init-top/grml/GRMLBASE
+#
+# Filename: /usr/share/initramfs-tools/scripts/init-top/grml
+# Purpose: Early boot progress handler
+# Authors: grml-team (grml.org),
+# (c) Michael Prokop <mika@grml.org>
+# Bug-Reports: see http://grml.org/bugs/
+# License: This file is licensed under the GPL v2 or any later version.
+################################################################################
# prereq header {{{
# without this header booting will fail with:
-# "PANIC: Circular dependancy. Exiting."
+# "PANIC: Circular dependency. Exiting."
PREREQ=""
prereqs()
{
GREEN="\e[1;32m"
# YELLOW: Descriptions
YELLOW="\e[1;33m"
- # BLUE: System mesages
+ # BLUE: System messages
BLUE="\e[1;34m"
# MAGENTA: Found devices or drivers
MAGENTA="\e[1;35m"
${NORMAL}"
else
SPLASH="
-${RED} ____ ____ __ __ _
-${RED} / ___| _ \| \/ | |
-${RED} | | _| |_) | |\/| | |
-${RED} | |_| | _ <| | | | |___
-${RED} \____|_| \_\_| |_|_____|
+${YELLOW} ____ _
+${YELLOW} / ___| _ __ _____ | |
+${YELLOW} | | _ | / /| || |
+${YELLOW} | |_| || / | | | || |
+${YELLOW} \____||_| |_|_|_||_|
-${WHITE}grml.org - Linux for sysadmins and texttool users.${NORMAL}"
+${WHITE}Grml Live Linux - http://grml.org/${NORMAL}"
fi
echo ""
echo
fi
-# don't output anything if running with bootsplash feature
-if checkbootparam "splash" ; then
- exec >/dev/null </dev/null 2>&1
-fi
# }}}
## /proc/cmdline handling {{{
if grep -q 'boot=live' /proc/cmdline 2>/dev/null ; then
log_grml_begin_msg "Finished early booting sequence." ; echo "$SUCCESS"
+ #(256-16)*1024=245760
+ if [ "$(awk '/MemTotal/{print $2}' /proc/meminfo)" -lt 245760 ] ; then
+ log_grml_failure_msg "Warning: less than 256MB RAM, boot may fail"
+ echo
+ fi
log_grml_begin_msg "Searching for GRML file, this might take a few seconds..."
echo
fi