Magellan Linux

Annotation of /trunk/initscripts/sysvinit/rc/consolefont

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2035 - (hide annotations) (download)
Thu Jan 24 15:21:11 2013 UTC (11 years, 3 months ago) by niro
File size: 682 byte(s)
-migrate to vconsole.conf and locale.conf
1 niro 69 #!/bin/bash
2 niro 931 # $Id$
3 niro 69
4     #%rlevels: 7:s
5     #%start: 75
6     #%stop:
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13 niro 781 source /etc/conf.d/rc
14     source ${rc_functions}
15 niro 69
16 niro 2035 [ -f /etc/vconsole.conf ] && source /etc/vconsole.conf
17 niro 69
18     # some defaults
19 niro 2035 SETFONT_OPTS=""
20     [ -z "${FONT}" ] && CONSOLEFONT="default8x16"
21 niro 69
22 niro 2035 # load font maps too
23     [ -n "${FONT_MAP} ] && SETFONT_OPTS="${SETFONT_OPTS} -m ${FONT_MAP}"
24     [ -n "${FONT_UNIMAP} ] && SETFONT_OPTS="${SETFONT_OPTS} -u ${FONT_UNIMAP}"
25    
26 niro 73 if [ -x /bin/setfont ]
27     then
28 niro 2035 rc_print "Setting console font to ${FONT} ..."
29 niro 73 for i in 0 1 2 3 4 5 6
30     do
31 niro 2035 /bin/setfont ${SETFONT_OPTS} ${FONT} -C /dev/tty${i}
32 niro 73 done
33     evaluate_retval
34     fi
35 niro 69
36     update_svcstatus $1
37     splash svc_started "$(basename $0)" 0

Properties

Name Value
svn:executable *