[Pkg-sysvinit-devel] Bug#335023: On GNU/kFreeBSD,
should initialise TERM=cons25
Robert Millan
rmh at aybabtu.com
Fri Oct 21 13:55:32 UTC 2005
Package: sysvinit
Version: 2.86.ds1-4
Severity: normal
Tags: patch
Patch explains itself:
diff -ur sysvinit-2.86.ds1.old/src/init.c sysvinit-2.86.ds1/src/init.c
--- sysvinit-2.86.ds1.old/src/init.c 2004-07-30 14:16:20.000000000 +0200
+++ sysvinit-2.86.ds1/src/init.c 2005-10-21 15:53:03.000000000 +0200
@@ -685,6 +685,14 @@
return;
}
+#ifdef __FreeBSD_kernel__
+ /* The kernel of FreeBSD expects userland to set TERM. Usualy, we want
+ "cons25". Later, gettys might disagree on this (i.e. we're not using
+ syscons) but some boot scripts, like /etc/init.d/xserver-xorg, still
+ need a non-dumb terminal. */
+ putenv ("TERM=cons25");
+#endif
+
(void) tcgetattr(fd, &tty);
tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD;
-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages sysvinit depends on:
ii coreutils 5.2.1-2.1+kbsd The GNU core utilities
ii initscripts 2.86.ds1-4 Standard scripts needed for bootin
ii libc0.1 2.3-1+kbsd.11 GNU C Library: Shared libraries an
ii sysv-rc 2.86.ds1-4 Standard boot mechanism using syml
sysvinit recommends no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cons25_tty.diff
Type: text/x-c
Size: 653 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20051021/efd0f86d/cons25_tty.bin
More information about the Pkg-sysvinit-devel
mailing list