Package: console-tools
Version: 1:0.2.3dbs-65
Severity: important
Tags: patch
When booting with usplash, the usplash process terminates too early
when the init.d/console-screen.sh is executed. The reason seem to be
the console font loading. I found code in the Ubuntu version of
console-setup indicating this, and the patch I propose here confirmed
that it was indeed the font handling that was the problem.
Please apply this patch to avoid killing usplash during boot. I've
tested it in Etch with usplash version 0.3e.
* Rewrite init.d script to not change console font while usplash is
running, to avoid usplash exiting partly through the boot.
--- console-tools-0.2.3dbs.orig/debian/console-screen.sh
+++ console-tools-0.2.3dbs/debian/console-screen.sh
@@ -63,7 +63,7 @@
fi
}
-setup ()
+setup_fonts ()
{
# be sure the main program is installed
[ -x "${SETFONT}" ] || return 0
@@ -136,7 +136,9 @@
done
[ "$VERBOSE" != "no" ] && log_action_end_msg 0
fi
+}
+setup_keymaps() {
# Global ACM
[ "${APP_CHARSET_MAP}" ] && ${CHARSET} G0 ${APP_CHARSET_MAP}
@@ -169,7 +171,9 @@
else
unicode_stop 2> /dev/null|| true
fi
+}
+setup_screensaver() {
# screensaver stuff
setterm_args=""
if [ "$BLANK_TIME" ]; then
@@ -184,7 +188,9 @@
if [ "$setterm_args" ]; then
setterm $setterm_args
fi
+}
+setup_keyboard() {
# Keyboard rate and delay
KBDRATE_ARGS=""
if [ -n "$KEYBOARD_RATE" ]; then
@@ -221,10 +227,24 @@
fi
}
+setup_all() {
+}
+
case "$1" in
start|reload|restart|force-reload)
- log_action_msg "Setting console screen modes and fonts"
- setup
+ # Changing the fonts make usplash exit. Avoid this.
+ if pidof usplash ; then
+ log_action_msg "Setting console screen modes"
+ setup_keymaps
+ setup_screensaver
+ setup_keyboard
+ else
+ log_action_msg "Setting console screen modes and fonts"
+ setup_fonts
+ setup_keymaps
+ setup_screensaver
+ setup_keyboard
+ fi
;;
stop)
;;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]