Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 20074 Details for
Bug 27216
consolefont script sets only tty1 in kernel 2.6.0-test4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/init.d/consolefont
consolefont (text/plain), 1.57 KB, created by
Martin Schlemmer (RETIRED)
on 2003-11-01 14:02:33 UTC
(
hide
)
Description:
/etc/init.d/consolefont
Filename:
MIME Type:
Creator:
Martin Schlemmer (RETIRED)
Created:
2003-11-01 14:02:33 UTC
Size:
1.57 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/consolefont,v 1.18 2003/10/31 21:17:01 azarah Exp $ > > >depend() { > need localmount > after hotplug >} > >start() { > local x= > local param= > local retval=1 > > if [ -n "${CONSOLEFONT}" ] > then > # Getting additional parameters, ie consoletranslation > if [ -n "${CONSOLETRANSLATION}" ] > then > param="-m ${CONSOLETRANSLATION}" > fi > > # Actually setting font > if [ -x /bin/setfont ] > then > ebegin "Setting user font" > > # We patched setfont to have --tty support ... > if [ -n "`setfont --help 2>&1 | grep -e '--tty'`" ] > then > for x in 1 2 3 4 5 6 7 8 9 10 > do > # Using DEVFS ? > if [ -e /dev/.devfsd ] > then > /bin/setfont ${CONSOLEFONT} ${param} \ > --tty=/dev/vc/${x} >/dev/null > retval=$? > else > /bin/setfont ${CONSOLEFONT} ${param} \ > --tty=/dev/tty${x} >/dev/null > retval=$? > fi > done > else > /bin/setfont ${CONSOLEFONT} ${param} >/dev/null > retval=$? > fi > else > # No console program installed! > eend 1 "The setfont executable was not found" > return 1 > fi > > if [ "${retval}" -eq 0 ] > then > for x in 1 2 3 4 5 6 7 8 9 10 > do > # Using DEVFS ? > if [ -e /dev/.devfsd ] > then > echo -ne "\033(K" >/dev/vc/${x} > else > echo -ne "\033(K" >/dev/tty${x} > fi > done > fi > > eend ${retval} "Failed to set user font" > else > ebegin "Using the default console font" > eend 0 > fi > > return ${retval} >} > > ># vim:ts=4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 27216
:
17470
|
17471
|
17476
| 20074 |
20084