Magellan Linux

Diff of /trunk/initscripts/sysvinit/rc/consolefont

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/magellan-initscripts/etc/rc.d/init.d/consolefont revision 781 by niro, Mon Dec 22 22:01:15 2008 UTC trunk/initscripts/sysvinit/rc/consolefont revision 2035 by niro, Thu Jan 24 15:21:11 2013 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/consolefont,v 1.5 2008-12-22 22:01:15 niro Exp $  # $Id$
3    
4  #%rlevels: 7:s  #%rlevels: 7:s
5  #%start: 75  #%start: 75
# Line 13  Line 13 
13  source /etc/conf.d/rc  source /etc/conf.d/rc
14  source ${rc_functions}  source ${rc_functions}
15    
16  [ -f /etc/rc.config ] && source /etc/rc.config  [ -f /etc/vconsole.conf ] && source /etc/vconsole.conf
17    
18  # some defaults  # some defaults
19  [ -z "${CONSOLEFONT}" ] && CONSOLEFONT="default8x16"  SETFONT_OPTS=""
20    [ -z "${FONT}" ] && CONSOLEFONT="default8x16"
21    
22    # 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  if [ -x /bin/setfont ]  if [ -x /bin/setfont ]
27  then  then
28   echo -e ${COLOREDSTAR}"Setting console font to ${CONSOLEFONT} ..."   rc_print "Setting console font to ${FONT} ..."
29   for i in 0 1 2 3 4 5 6   for i in 0 1 2 3 4 5 6
30   do   do
31   /bin/setfont ${CONSOLEFONT} -C /dev/tty${i}   /bin/setfont ${SETFONT_OPTS} ${FONT} -C /dev/tty${i}
32   done   done
33   evaluate_retval   evaluate_retval
34  fi  fi
35    
36  update_svcstatus $1  update_svcstatus $1
37  splash svc_started "$(basename $0)" 0  splash svc_started "$(basename $0)" 0
   

Legend:
Removed from v.781  
changed lines
  Added in v.2035