Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 2236 Details for
Bug 4968
Wrong consolefont rc-script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
New script
consolefont (text/plain), 1.57 KB, created by
Oleg Nesterkine
on 2002-07-14 04:26:04 UTC
(
hide
)
Description:
New script
Filename:
MIME Type:
Creator:
Oleg Nesterkine
Created:
2002-07-14 04:26:04 UTC
Size:
1.57 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2002 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License, v2 or later ># $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/consolefont,v 1.10 2002/04/01 18:37:39 azarah Exp $ > > >depend() { > need localmount >} > >start() { > local retval=1 > if [ -n "${CONSOLEFONT}" ] > then > #Getting additional parameters, ie consoletranslation > local param="" > local x="" > if [ -n "${CONSOLETRANSLATION}" ] > then > param="-m ${CONSOLETRANSLATION}" > fi > > #Actually setting font > if [ -x /usr/bin/consolechars ] > then > #Console-Tools section: > > ebegin "Setting user font" > for x in 1 2 3 4 5 6 7 8 9 10 > do > if [ -e /dev/.devfsd ] > then > /usr/bin/consolechars -f ${CONSOLEFONT} ${param} \ > --tty=/dev/vc/${x} >/dev/null > retval=$? > else > /usr/bin/consolechars -f ${CONSOLEFONT} ${param} \ > --tty=/dev/tty${x} >/dev/null > retval=$? > fi > done > > elif [ -x /usr/bin/setfont ] > then > #Kbd Section > > ebegin "Setting user font" > /usr/bin/setfont ${CONSOLEFONT} ${param} >/dev/null > retval=$? > > for x in 1 2 3 4 5 6 7 8 9 10 > do > if [ -e /dev/.devfsd ] > then > echo -ne "\033(K" > /dev/vc/${x} > retval=$? > else > echo -ne "\033(K" > /dev/tty${x} > retval=$? > fi > done > > else > #No console program installed, error. > eend 1 "setfont/consolechars executable not found" > return 1 > fi > > eend $retval "Failed to set user font" > else > eerror "You need to setup \$CONSOLEFONT in /etc/rc.conf first." > 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 4968
: 2236