install -m 755 autoconfig.functions debian/grml-autoconfig/etc/grml/autoconfig.functions
install -m 644 language-functions debian/grml-autoconfig/etc/grml/language-functions
install -m 755 sbin/grml-autoconfig debian/grml-autoconfig/usr/sbin/grml-autoconfig
- install -m 755 grml-bootsplash debian/grml-autoconfig/usr/bin/grml-bootsplash
install -m 755 bin/restore-config debian/grml-autoconfig/usr/bin/restore-config
install -m 755 bin/save-config debian/grml-autoconfig/usr/bin/save-config
dh_testroot
dh_installchangelogs
dh_installdocs doc/grml-autoconfig.1.html doc/grml-autoconfig.8.html \
- doc/grml-bootsplash.1.html \
doc/restore-config.1.html doc/save-config.1.html
dh_installman doc/grml-autoconfig.1.gz doc/grml-autoconfig.8.gz \
- doc/grml-bootsplash.1.gz \
doc/restore-config.1.gz doc/save-config.1.gz
# backward compability:
dh_link /usr/share/doc/grml-autoconfig/grml-autoconfig.1.html /usr/share/doc/grml-saveconfig/grml-config.html
sed -i 's/\.sp//' `echo $^ | sed -e 's/.txt//'`
gzip -f --best `echo $^ |sed -e 's/.txt//'`
-MANPAGES = grml-autoconfig.1 grml-autoconfig.8 grml-bootsplash.1 restore-config.1 save-config.1
+MANPAGES = grml-autoconfig.1 grml-autoconfig.8 restore-config.1 save-config.1
all: doc
+++ /dev/null
-grml-bootsplash(1)
-==================
-
-Name
-----
-grml-bootsplash - script and configuration framework for the grml system
-
-Synopsis
---------
-
-grml-bootsplash "||..."
-
-About
------
-
-'grml-bootsplash' provides a text-based simple bootsplash. It is integrated
-within the grml-autoconfig(1) framework. You very probably won't need it
-otherwise, this manpage just documents what grml-bootsplash does.
-
-Options
--------
-
-The program grml-bootsplash does not support any options besides the "||..."
-sequence. If you want to specify first status of bootsplash use
-'grml-bootsplash "|"'. To specify the last status of bootsplash use
-'grml-bootsplash "||||||||||||"' (that's 12 '|'). The maximum number of
-supported "|" signs is twelve and will be used automatically if more are
-specified.
-
-Bugs
-----
-If you find a bug please report it. See link:http://grml.org/bugs/[] for details
-about how to report bugs.
-
-See also
---------
-grml-autoconfig(1), grml-autoconfig(8), restore-config(1)
-
-Authors
--------
-
-grml-bootsplash was written by Michael Prokop <mika@grml.org> and Florian Keller
-<Florian.Keller@zuerich.ch>. This manual page was written by Michael Prokop
-<mika@grml.org> for the grml project (but may be used by others).
# {{{ main grml-autoconfig
checkvalue $CONFIG_DEBUG && config_debug
-SPLASH=''
-if checkbootparam 'textsplash' || checkbootparam 'tsplash'; then
- SPLASH=1
-fi
-
# update /etc/mtab if running in live-initramfs mode:
if [ -z "$INSTALLED" -a -e /live/cow ] ; then
if ! grep -q rootfs /etc/mtab ; then
fi
fi
-if [ -z "$SPLASH" ] ; then
- stage=5
- rundebugshell
-fi
+stage=5
+rundebugshell
if [ -z "$BOOTDEBUG" ] ; then
einfo "Setting kernel ring buffer to level 2."
ewarn " Do *NOT* boot with something like 'grml forensic ...' but always use 'forensic ...' instead!" ; eend 0
fi
-if [ -n "$SPLASH" ] ; then
- /usr/bin/grml-bootsplash "|">/dev/tty14
- chvt 14
-fi
-
checkvalue $CONFIG_LANGUAGE && config_language
checkvalue $CONFIG_LOG && config_log
checkvalue $CONFIG_FIX_PASSWD && config_fix_passwd
-[ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "||">/dev/tty14
-
checkvalue $CONFIG_HOSTNAME && config_hostname
checkvalue $CONFIG_USERFSTAB && config_userfstab
checkvalue $CONFIG_FAST && config_fast
-[ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "|||">/dev/tty14
-
checkvalue $CONFIG_SWRAID && config_swraid
checkvalue $CONFIG_DMRAID && config_dmraid
checkvalue $CONFIG_TESTCD && config_testcd
-[ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "||||">/dev/tty14
-
checkvalue $CONFIG_MODULES && config_modules
-[ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "|||||">/dev/tty14
-
checkvalue $CONFIG_ACPI && config_acpi
-[ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "||||||">/dev/tty14
-
checkvalue $CONFIG_DMA && config_dma
checkvalue $CONFIG_FSTAB && config_fstab
checkvalue $CONFIG_MOUSE && config_mouse
-[ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "|||||||">/dev/tty14
-
checkvalue $CONFIG_CPU && config_cpu
checkvalue $CONFIG_SSH && config_ssh
checkvalue $CONFIG_PARTCONF && config_partconf
-[ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "||||||||">/dev/tty14
-
# device symlinks {{{
[ -r /mnt/floppy ] || mkdir /mnt/floppy
[ -r /mnt/cdrom ] || mkdir /mnt/cdrom
checkvalue $CONFIG_GPM && config_gpm
-[ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "|||||||||">/dev/tty14
-
checkvalue $CONFIG_NETCONFIG && config_netconfig
checkvalue $CONFIG_NETSCRIPT && config_netscript
checkvalue $CONFIG_DEBNET && config_debnet
-[ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "||||||||||">/dev/tty14
-
checkvalue $CONFIG_CONSOLE && config_console
checkvalue $CONFIG_FIX_UNIONFS && fix_unionfs
checkvalue $CONFIG_BLANKING && config_blanking
-if [ -n "$SPLASH" ] ; then
- /usr/bin/grml-bootsplash "|||||||||||">/dev/tty14
- chvt 1
-fi
-
checkvalue $CONFIG_TOHD && config_tohd
checkvalue $CONFIG_DEBOOTSTRAP && config_debootstrap
# }}}
# {{{ debug
-if [ -z "$SPLASH" ] ; then
- stage=6
- rundebugshell
-fi
+stage=6
+rundebugshell
if [ -n "$BOOTDEBUG" ] ; then
# set only if not already set
+++ /dev/null
-#!/bin/bash
-# Filename: grml-bootsplash
-# Purpose: simple text based bootsplash
-# Authors: (c) Florian Keller <Florian.Keller@zuerich.ch>, (c) Michael Prokop <mika@grml.org>
-# Bug-Reports: see http://grml.org/bugs/
-# License: This file is licensed under the GPL v2.
-################################################################################
-
-if [ -z "$1" ] ; then
- STATUS='| not set ||'
-else
- STATUS="$1" # maximum: 12 '|'
-fi
-
-COUNT=$(echo -n "$STATUS" | wc -c)
-
-if [ "$COUNT" -gt 12 ] ; then
- COUNT=12 # more than 12 characters are not supported
- STATUS="||||||||||||"
-fi
-
-PLACEHOLDER=""
-BOOTSPLASH=$(mktemp)
-
-echo -ne '\033[H\033[25l'
-cat > $BOOTSPLASH << 'EOTA'
-
-
-
-
- .----------------. .----------------. .----------------. .----------------.
-| .--------------. || .--------------. || .--------------. || .--------------. |
-| | ______ | || | _______ | || | ____ ____ | || | _____ | |
-| | .' ___ | | || | |_ __ \ | || ||_ \ / _|| || | |_ _| | |
-| | / .' \_| | || | | |__) | | || | | \/ | | || | | | | |
-| | | | ____ | || | | __ / | || | | |\ /| | | || | | | _ | |
-| | \ `.___] _| | || | _| | \ \_ | || | _| |_\/_| |_ | || | _| |__/ | | |
-| | `._____.' | || | |____| |___| | || ||_____||_____|| || | |________| | |
-| | | || | | || | | || | | |
-| '--------------' || '--------------' || '--------------' || '--------------' |
- '----------------' '----------------' '----------------' '----------------'
-
- _______________________________________________________________________
- | |
- | .''''. |
- | _.-'/ | \ |
- | , _.-" ,| / a `-. |
- | |\ .-" `--""-.__.'==========================-, |
- | \ '-'` .___.--._)==============================| |
- | \ .' | | |
- | | /,_.-' | Loading grml system ... | |
- | _/ _.'( | (press alt+f1 to exit splash) | |
- | / ,-' \ \ | | |
-EOTA
-
-
-
-echo -n " | \ \ \`-' | 0% -[" >> $BOOTSPLASH
-echo -en "\e[1;32m$STATUS\e[0;39m" >> $BOOTSPLASH
-
-COUNT=$(expr 13 - $COUNT)
-for (( i=1 ; i < ${COUNT} ; i++ )); do
- PLACEHOLDER="$PLACEHOLDER "
-done
-
-echo -n "$PLACEHOLDER" >> $BOOTSPLASH
-echo "]- 100% | |" >> $BOOTSPLASH
-
-cat >> $BOOTSPLASH << 'EOTA'
- | `-' '-------------------------------' |
- | |
- | |
- | |
- |_______________________________________________________________________|
-
-
-
-
-
-
-EOTA
-
-cat $BOOTSPLASH
-rm -f $BOOTSPLASH &>/dev/null
-
-## END OF FILE #################################################################