ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus mailing list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] последний dist-upgrade и framebufer
Date: Sat, 24 May 2003 18:31:04 +0400
Message-ID: <20030524143104.GB14651@basalt.office.altlinux.org> (raw)
In-Reply-To: <20030524093634.GA22917@sergey.iks.ru>


[-- Attachment #1.1: Type: text/plain, Size: 210 bytes --]

On Sat, May 24, 2003 at 10:36:34PM +1300, Sergey Plyukhin wrote:
> Здравствуйте.
> После изменения в инит скриптах загрузки framebufer
> появилась следующая проблема :-( 

Попробуйте приложенный патч.


--
ldv

[-- Attachment #1.2: fbsetfont.diff --]
[-- Type: text/plain, Size: 1097 bytes --]

--- /etc/rc.d/init.d/fbsetfont.orig	21 May 2003 12:22:40 -0000
+++ /etc/rc.d/init.d/fbsetfont	24 May 2003 14:22:47 -0000
@@ -27,6 +27,16 @@
 # See how we were called.
 case "$1" in
 	start|reload|restart)
+		# Initializing ttys.
+		sed -ne 's,^\([0-9]\+\):[0-9]\+:respawn:/sbin/mingetty.*,/dev/tty\1,pg' </etc/inittab |
+			while read t; do
+				[ ! -c "$t" ] || : >>"$t"
+			done
+		for i in $TTYS; do
+			t="/dev/tty$i"
+			[ ! -c "$t" ] || : >>"$t"
+		done
+
 		# Setup videomode if requested.
 		if [ -n "$MODE" -a -x "$FBSET" ]; then
 			: >>"$LOGDEVICE"
@@ -36,10 +46,15 @@
 		# Update system font.
 		if [ -n "$MODULE" ] || [ -n "$MODE" -a -x "$FBSET" ]; then
 			: >>"$LOGDEVICE"
+			sed -ne 's,^\([0-9]\+\):[0-9]\+:respawn:/sbin/mingetty.*,/dev/tty\1,pg' </etc/inittab |
+				while read t; do
+					[ ! -c "$t" ] ||
+						/sbin/setsysfont --tty="$t" >>"$LOGDEVICE" 2>&1
+				done
 			for i in $TTYS; do
 				t="/dev/tty$i"
-				: >>"$t"
-				/sbin/setsysfont --tty="$t" >>"$LOGDEVICE" 2>&1
+				[ ! -c "$t" ] ||
+					/sbin/setsysfont --tty="$t" >>"$LOGDEVICE" 2>&1
 			done
 		fi
 		;;

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-05-24 14:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-24  9:36 Sergey Plyukhin
2003-05-24 14:31 ` Dmitry V. Levin [this message]
2003-05-24 20:33   ` Sergey Plyukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030524143104.GB14651@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git